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.Object
A directed, weighted edge in a graph- Version:
- $Revision$
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearMark()
Clear the edge mark flagint
getCost()
Get the cost of the edgeVertex<T>
getFrom()
Get the starting vertexVertex<T>
getTo()
Get the ending vertexboolean
isMarked()
Get the edge mark flagvoid
mark()
Set the mark flag of the edgejava.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- string rep with from/to vertex names and cost
-
-