|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.jku.ssw.Graph
public class Graph
A graph of character vertices.
Field Summary | |
---|---|
java.util.List |
edges
|
java.util.List |
vertices
|
Constructor Summary | |
---|---|
Graph()
Creates an empty graph. |
Method Summary | |
---|---|
void |
addEdge(Edge edge)
Adds an edge to the graph. |
void |
addVertex(Vertex vertex)
Adds a vertex to the graph. |
Edge |
getEdge(Vertex start,
Vertex end)
Returns the edge between the start and the end vertex. |
Edge[] |
getEdges(Vertex vertex)
Returns the outgoing edges for a vertex. |
Vertex |
getRoot()
Returns the root vertex of the graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.util.List vertices
public java.util.List edges
Constructor Detail |
---|
public Graph()
Method Detail |
---|
public void addVertex(Vertex vertex)
public Vertex getRoot()
public void addEdge(Edge edge)
public Edge[] getEdges(Vertex vertex)
public Edge getEdge(Vertex start, Vertex end)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |