This paper proposes a network modeling technique using a graph search algorithm for model development of large distribution feeders in an electromagnetic transient program. Large scale penetration of distributed energy resources in the existing distribution feeders impacts the dynamic behavior and pose the motivation to perform a transient analysis on the distribution feeders. This paper proposes a generalized framework to develop the feeder model suitable for transient analysis. A complete model of the distribution feeder will be developed with the purpose to capture the long-term transients such as interaction with other control devices, cloud transients, and voltage flicker. For this purpose a test distribution system is chosen with 738 nodes, 1142 sections, 174 transformers, 107 PV generators, and 287 spot loads. The test feeder has been modeled in MATLAB/Simulink for performing the transient analysis.