de.aitools.iv.graphdrawing.datastructures.graph
Class Edge

java.lang.Object
  extended by de.aitools.iv.graphdrawing.datastructures.NodeReference
      extended by de.aitools.iv.graphdrawing.datastructures.graph.Edge
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class Edge
extends NodeReference
implements java.io.Externalizable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.aitools.iv.graphdrawing.datastructures.NodeReference
myNode
 
Constructor Summary
Edge()
           
Edge(Vertex from, Vertex to)
           
Edge(Vertex from, Vertex to, double weight)
           
 
Method Summary
 Vertex getFromVertex()
           
 int getId()
           
 Edge getInverseEdge()
           
 Vertex getToVertex()
           
 double getWeight()
           
 Vertex incidentVertex(Vertex v)
           
 void readExternal(java.io.ObjectInput in)
           
 void setId(int id)
           
 void setNode(java.lang.Object o)
           
 void setWeight(double weight)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class de.aitools.iv.graphdrawing.datastructures.NodeReference
getNode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Vertex from,
            Vertex to,
            double weight)

Edge

public Edge(Vertex from,
            Vertex to)

Edge

public Edge()
Method Detail

getFromVertex

public Vertex getFromVertex()

getToVertex

public Vertex getToVertex()

getWeight

public double getWeight()

setWeight

public void setWeight(double weight)

getInverseEdge

public Edge getInverseEdge()

setId

public void setId(int id)

getId

public int getId()

incidentVertex

public Vertex incidentVertex(Vertex v)

setNode

public void setNode(java.lang.Object o)
Overrides:
setNode in class NodeReference

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object