nanomunchers.graph
Class Edge
java.lang.Object
nanomunchers.graph.Edge
- public class Edge
- extends java.lang.Object
Represents an Edge in a graph
- Author:
- David Kaplin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sideOne
protected Node sideOne
sideTwo
protected Node sideTwo
Edge
public Edge(Node sOne,
Node sTwo)
isNeighbor
public boolean isNeighbor(Edge e)
doesContain
public boolean doesContain(Node n)
equalsSpacially
public boolean equalsSpacially(Edge b)
- Examines the points that make up both edges as opposed to the
nodes that surround those points.
- Parameters:
b
- to be compared.
- Returns:
- if the endpoints one way or another match in both this edge and in b.
getOther
public Node getOther(Node startingPoint)
getNodes
public Node[] getNodes()
toString
public java.lang.String toString()