|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Graph
public java.util.Set getEdges()
getEdges
in interface Graph
public void addVertex(Vertex v)
Graph
addVertex
in interface Graph
v
- vertexpublic void addConnection(Vertex start, Edge edge, Vertex end)
addConnection
in interface Graph
public java.util.Set getAllConnections()
getAllConnections
in interface Graph
public java.util.Set getConnections(Vertex start, Vertex end)
getConnections
in interface Graph
public java.util.Set getOutbound(Vertex vertex)
getOutbound
in interface Graph
public java.util.Set getInbound(Vertex vertex)
getInbound
in interface Graph
public 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 |