public class Node extends GraphComponent
| Modifier and Type | Field and Description |
|---|---|
protected Coordinate |
coord
|
protected EdgeEndStar |
edges
|
label| Constructor and Description |
|---|
Node(Coordinate
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(EdgeEnd
Add the edge to the list of edges at this node
|
protected void |
computeIM(IntersectionMatrix
Basic nodes do not compute IMs
|
Coordinate |
getCoordinate()
|
EdgeEndStar |
getEdges()
|
boolean |
isIncidentEdgeInResult()
Tests whether any incident edge is flagged as being in the result.
|
boolean |
isIsolated()
An isolated component is one that does not intersect or touch any other component.
|
void |
mergeLabel(Label
To merge labels for two nodes, the merged location for each LabelElement is computed.
|
void |
mergeLabel(Node
|
void |
print(PrintStream
|
void |
setLabel(int argIndex, int onLocation)
|
void |
setLabelBoundary(int argIndex)
Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
|
getLabel, isCovered, isCoveredSet, isInResult, isVisited, setCovered, setInResult, setLabel, setVisited, updateIMprotected Coordinatecoord
protected EdgeEndStaredges
public Node(Coordinatecoord, EdgeEndStar edges)
public CoordinategetCoordinate()
getCoordinate in class
GraphComponent
public EdgeEndStargetEdges()
public boolean isIncidentEdgeInResult()
true if any indicident edge in the in the result
public boolean isIsolated()
GraphComponent
isIsolated in class
GraphComponent
protected void computeIM(IntersectionMatrixim)
public void add(EdgeEnde)
public void mergeLabel(Noden)
public void mergeLabel(Labellabel2)
public void setLabel(int argIndex,
int onLocation)public void setLabelBoundary(int argIndex)
public void print(PrintStreamout)