}
GElement source = graph.findElementWithLabel(sourceName);
GElement target = graph.findElementWithLabel(targetName);
GLink link = new GLink(source, GElementCircle.ANCHOR_CENTER,
target, GElementCircle.ANCHOR_CENTER,
GLink.SHAPE_BEZIER, labelName, 0);
if(points == null) {
System.err.println("No points for "+sourceName+", "+targetName+", "+tokens.length);
for (int i = 0; i < tokens.length; i++) {
String token = tokens[i];
System.out.println(token);
}
}
link.setBezierControlPoints(points);
link.setBezierLabelPosition(labelPosition);
return link;
}