public class ChainOfNodes extends Object
Constructor and Description |
---|
ChainOfNodes(TLongList nodeIds) |
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
TLongList |
getNodes() |
boolean |
hasNodeIntersections()
Return whether this ring has intersections in terms of node ids appearing
multiple times.
|
boolean |
isClosed() |
boolean |
isValidRing() |
List<ChainOfNodes> |
resolveNodeIntersections()
Build a new set of rings by splitting at node intersections.
|
public ChainOfNodes(TLongList nodeIds)
public TLongList getNodes()
public boolean isClosed()
public int getLength()
public boolean isValidRing()
public boolean hasNodeIntersections()
public List<ChainOfNodes> resolveNodeIntersections()