LNode source = edge.source;
LNode target = edge.target;
if (source == target)
{
edge.bendpoints.add(new EdgeBendpoint());
edge.bendpoints.add(new EdgeBendpoint());
this.createDummyNodesForBendpoints(edge);
visited.add(edge);
}
else
{
List edgeList = source.getEdgeListToNode(target);
edgeList.addAll(target.getEdgeListToNode(source));
if (!visited.contains(edgeList.get(0)))
{
if (edgeList.size() > 1)
{
for(int k = 0; k < edgeList.size(); k++)
{
LEdge multiEdge = (LEdge)edgeList.get(k);
multiEdge.bendpoints.add(new EdgeBendpoint());
this.createDummyNodesForBendpoints(multiEdge);
}
}
visited.addAll(edgeList);