net.sf.saffron.util
Class Graph.Arc
java.lang.Object
|
+--net.sf.saffron.util.Graph.Arc
- Enclosing class:
- Graph
- public static class Graph.Arc
- extends Object
An Arc
is a directed link between two nodes.
The nodes are compared according to Object.equals(java.lang.Object)
and Object.hashCode()
. We assume that their Object.toString()
works,
too.
from
public final Object from
to
public final Object to
string
private final String string
Graph.Arc
public Graph.Arc(Object from,
Object to)
- Creates an arc.
- Pre-condition:
- from != null, to != null
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
toString
private static String toString(Graph.Arc[] arcs)