|
JBoss Common Classes 2.2.17.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.graph.Edge<T>
T
- public class Edge<T>
A directed, weighted edge in a graph
Constructor Summary | |
---|---|
Edge(Vertex<T> from,
Vertex<T> to)
Create a zero cost edge between from and to |
|
Edge(Vertex<T> from,
Vertex<T> to,
int cost)
Create an edge between from and to with the given cost. |
Method Summary | |
---|---|
void |
clearMark()
Clear the edge mark flag |
int |
getCost()
Get the cost of the edge |
Vertex<T> |
getFrom()
Get the starting vertex |
Vertex<T> |
getTo()
Get the ending vertex |
boolean |
isMarked()
Get the edge mark flag |
void |
mark()
Set the mark flag of the edge |
String |
toString()
String rep of edge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Edge(Vertex<T> from, Vertex<T> to)
from
- the starting vertexto
- the ending vertexpublic Edge(Vertex<T> from, Vertex<T> to, int cost)
from
- the starting vertexto
- the ending vertexcost
- the cost of the edgeMethod Detail |
---|
public Vertex<T> getTo()
public Vertex<T> getFrom()
public int getCost()
public void mark()
public void clearMark()
public boolean isMarked()
public String toString()
toString
in class Object
|
JBoss Common Classes 2.2.17.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |