I am able to run Geometric Network Trace by using following ArcPy script but I also need to add Trace result into the map. Can you please let me know how I can add the result(graphic/geometry) to the map.
<SPAN class="keyword token">import</SPAN> arcpy
arcpy<SPAN class="punctuation token">.</SPAN>env<SPAN class="punctuation token">.</SPAN>workspace <SPAN class="operator token">=</SPAN> r<SPAN class="string token">"E:/Utility/Sample/Montgomery.gdb"</SPAN>
<SPAN class="comment token"># Local variables:</SPAN>
G_N <SPAN class="operator token">=</SPAN> <SPAN class="string token">"E:/Utility/Sample/Montgomery.gdb/Water/Water_Net"</SPAN>
Flag <SPAN class="operator token">=</SPAN> <SPAN class="string token">"E:/Utility/Sample/Flag.shp"</SPAN>
traceOut <SPAN class="operator token">=</SPAN> <SPAN class="string token">"traceOut_Net"</SPAN>
<SPAN class="comment token"># Process: Trace Geometric Network</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>TraceGeometricNetwork_management<SPAN class="punctuation token">(</SPAN>G_N<SPAN class="punctuation token">,</SPAN> traceOut<SPAN class="punctuation token">,</SPAN> Flag<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"TRACE_UPSTREAM"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"NO_TRACE_ENDS"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN