Class Edge

java.lang.Object
  |
  +--Edge

public class Edge
extends java.lang.Object

Class for representing edges in graphs. An edge is defined by its own id and the ids of the two knots it connects. Furthermore, an arbitrary integer value is associated with each edge. This value is used for data to be visualized.

Author:
Stefan Daschek

Field Summary
 int from
          Id of the first knot.
 int id
          Id of the edge.
 int to
          Id of the second knot.
 int val
          Value associated with edge.
 
Constructor Summary
Edge(int id, int from, int to, int val)
          Default constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
Id of the edge.


from

public int from
Id of the first knot.


to

public int to
Id of the second knot.


val

public int val
Value associated with edge.

Constructor Detail

Edge

public Edge(int id,
            int from,
            int to,
            int val)
Default constructor.

Parameters:
id - id of the edge
from - id of first knot
to - id of second knot
val - value associated with edge