org.xistrat.util.d3.vrmlgraph
Class Edge

java.lang.Object
  extended by org.xistrat.util.d3.vrmlgraph.Edge

public class Edge
extends java.lang.Object

The Edge class acts as an object that holds a reference to the two nodes that it connects.

Since:
0.6.90

Constructor Summary
Edge(Node from, Node to)
          Constructor for the Edge object
 
Method Summary
 Node getFrom()
          Gets the Node that this edge is connected from.
 Node getTo()
          Gets the Node that this Edge is connected to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Node from,
            Node to)
Constructor for the Edge object

Parameters:
from - One of the Node objects that this Edge connects.
to - The other Node object that this Edge connects.
Method Detail

getFrom

public Node getFrom()
Gets the Node that this edge is connected from.

Returns:
The Node that this Edge is connected from.

getTo

public Node getTo()
Gets the Node that this Edge is connected to.

Returns:
The Node that this Edge is connected to.