|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.rblasch.convert.graph.SparseWeightedDirectedGraph
| Constructor Summary | |
SparseWeightedDirectedGraph()
|
|
| Method Summary | |
void |
addConnection(Vertex start,
Edge edge,
Vertex end)
Enter a new segment in the graph. |
void |
addVertex(Vertex v)
Ener a new vertex in the graph. |
boolean |
equals(java.lang.Object obj)
|
java.util.Set |
getAllConnections()
|
java.util.Set |
getConnections(Vertex start,
Vertex end)
|
java.util.Set |
getEdges()
|
java.util.Set |
getInbound(Vertex vertex)
Get the list of vertices that lead to the given vertex. |
java.util.Set |
getOutbound(Vertex vertex)
Get the list of vertices that can be reached from the given vertex. |
java.util.Set |
getVertices()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SparseWeightedDirectedGraph()
| Method Detail |
public java.util.Set getVertices()
getVertices in interface Graphpublic java.util.Set getEdges()
getEdges in interface Graphpublic void addVertex(Vertex v)
Graph
addVertex in interface Graphv - vertex
public void addConnection(Vertex start,
Edge edge,
Vertex end)
addConnection in interface Graphpublic java.util.Set getAllConnections()
getAllConnections in interface Graph
public java.util.Set getConnections(Vertex start,
Vertex end)
getConnections in interface Graphpublic java.util.Set getOutbound(Vertex vertex)
getOutbound in interface Graphpublic java.util.Set getInbound(Vertex vertex)
getInbound in interface Graphpublic boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||