Bengi,
The the data is returning in the correct WKID and you don't need to change it.
See if the changes I made to lines 7 and 18 help your issue.
var edgesResultFeatures = result.edges;
console.log(edgesResultFeatures);
var edgeGraphics;
for (var j = 0, jl = edgesResultFeatures.length; j < jl; j++) {
var featureSet = edgesResultFeatures[j].features;
for (var i = 0, il = featureSet.length; i < il; i++) {
edgeGraphics = new esri.Graphic(featureSet[i].geometry)
graphicsLayerTraceNetworkEdges.add(edgeGraphics);
}
}
var junctionsResultFeatures = result.junctions;
console.log(junctionsResultFeatures);
var junctionsGraphics;
for (var j = 0, jl = junctionsResultFeatures.length; j < jl; j++) {
var featureSet = junctionsResultFeatures[j].features;
for (var i = 0, il = featureSet.length; i < il; i++) {
junctionsGraphics = new esri.Graphic(featureSet[i].geometry);
graphicsLayerTraceNetworkJunctions.add(junctionsGraphics);
}
}