Class Node

Hierarchy: Object , GraphComponent, Node
Direct Known Subclasses: RelateNode
public class Node
extends GraphComponent

Other

  • version: 1.7
public Node(Coordinate coord, EdgeEndStar edges)
public Coordinate getCoordinate()
public EdgeEndStar getEdges()
public boolean isIncidentEdgeInResult()
Tests whether any incident edge is flagged as being in the result. This test can be used to determine if the node is in the result, since if any incident edge is in the result, the node must be in the result as well.
Returns:
true if any incident edge in the in the result
public boolean isIsolated()
protected void computeIM(IntersectionMatrix im)
Basic nodes do not compute IMs
public void add(EdgeEnd e)
Add the edge to the list of edges at this node
public void mergeLabel(Node n)
public void mergeLabel(Label label2)
To merge labels for two nodes, the merged location for each LabelElement is computed. The location for the corresponding node LabelElement is set to the result, as long as the location is non-null.
public void setLabel(int argIndex, int onLocation)
public void setLabelBoundary(int argIndex)
Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
public void print(PrintStream out)