static Web calToWeb(CirclesAndLines cal) { new Web web; web.useCLParse = false; new HashMap map; for (Circle c : cal.circles) map.put(c, web.newNode(c.text)); for (Line l : cal.lines) { WebNode rel = web.getRelation(assertNotNull(map.get(l.a)), assertNotNull(map.get(l.b))); rel.addLabel(l.text); } ret web; }