jcreek.util.graph
Class Edge

java.lang.Object
  extended byjcreek.util.graph.Edge
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
VisualRelation

public abstract class Edge
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
protected  Node from
           
protected  Graph graph
           
protected  Node to
           
 
Constructor Summary
protected Edge()
           
  Edge(Node from, Node to)
          Creates a new edge.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this edge.
 Node getFrom()
          Returns the node this edge is from.
 Node getTo()
          Returns the node this edge is from.
 void remove()
          Ask to remove this edge from the current graph.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

protected Node from

to

protected Node to

graph

protected Graph graph
Constructor Detail

Edge

public Edge(Node from,
            Node to)
Creates a new edge. It is not automatically added to any graph.


Edge

protected Edge()
Method Detail

getFrom

public Node getFrom()
Returns the node this edge is from.


getTo

public Node getTo()
Returns the node this edge is from.


clone

public java.lang.Object clone()
Returns a clone of this edge.


remove

public void remove()
Ask to remove this edge from the current graph.



Created at IDI, NTNU by the Artificial Intelligence and Learning group