Package org.jboss.util.graph
Class Edge<T>
- java.lang.Object
-
- org.jboss.util.graph.Edge<T>
-
- Type Parameters:
T-
public class Edge<T> extends java.lang.ObjectA directed, weighted edge in a graph- Version:
- $Revision$
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearMark()Clear the edge mark flagintgetCost()Get the cost of the edgeVertex<T>getFrom()Get the starting vertexVertex<T>getTo()Get the ending vertexbooleanisMarked()Get the edge mark flagvoidmark()Set the mark flag of the edgejava.lang.StringtoString()String rep of edge
-
-
-
Method Detail
-
getCost
public int getCost()
Get the cost of the edge- Returns:
- cost of the edge
-
mark
public void mark()
Set the mark flag of the edge
-
clearMark
public void clearMark()
Clear the edge mark flag
-
isMarked
public boolean isMarked()
Get the edge mark flag- Returns:
- edge mark flag
-
toString
public java.lang.String toString()
String rep of edge- Overrides:
toStringin classjava.lang.Object- Returns:
- string rep with from/to vertex names and cost
-
-