nanomunchers.graph
Class Edge

java.lang.Object
  extended bynanomunchers.graph.Edge

public class Edge
extends java.lang.Object

Represents an Edge in a graph

Author:
David Kaplin

Field Summary
protected  Node sideOne
           
protected  Node sideTwo
           
 
Constructor Summary
Edge(Node sOne, Node sTwo)
           
 
Method Summary
 boolean doesContain(Node n)
           
 boolean equalsSpacially(Edge b)
          Examines the points that make up both edges as opposed to the nodes that surround those points.
 Node[] getNodes()
           
 Node getOther(Node startingPoint)
           
 boolean isNeighbor(Edge e)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sideOne

protected Node sideOne

sideTwo

protected Node sideTwo
Constructor Detail

Edge

public Edge(Node sOne,
            Node sTwo)
Method Detail

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()