jungEdge = new DirectedSparseEdge(startVertex, endVertex);
} else {
jungEdge = new UndirectedSparseEdge(startVertex, endVertex);
}
jungEdge.addUserDatum(ELASTIC_LENGTH_KEY, new Double(elasticEdge
.getLength()), UserData.SHARED);
myEdgeMap.put(uiEdge, jungEdge);
myGraph.addEdge(jungEdge);