309310311312313314315316317318319
nodes.add(v); } } else { // See if we need to create a vertex. // Count the linked ports. int count = relation.linkedPortList().size(); if (count != 2) { // A vertex is needed, so create one. try { String name = relation.uniqueName("vertex");