|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Graph
A Graph contains a set of Vertices and a set of Edges containing these Vertices.
Is is possible that the collection of Edges returned by a Vertex contains Edges not contained in the Graph holding the Vertex. This makes efficient representation of subgraphs possible without the need to clone large parts of the graph datastructure.
| Method Summary | |
|---|---|
boolean |
contains(Edge edge)
Returns whether this Graph contains the specified Edge. |
boolean |
contains(Vertex vertex)
Returns whether this Graph contains the specified Vertex. |
Collection<Graph> |
getConnectedSubgraphs()
Returns a set of Graphs containing disjoint subsets of the Vertices and Edges of this Graph, so that within each one of these Graphs there is a path between each pair of Vertices (ignoring directionality) but there are no paths to Vertices from other Graphs. |
Collection<Graph> |
getConnectedSubgraphs(Collection<Vertex> vertices,
Collection<Edge> edges)
Returns a set of Graphs containing disjoint subsets of the specified Vertices and Edges, so that within each one of these Graphs there is a path between each pair of Vertices (ignoring directionality) but there are no connections to Vertices from other Graphs. |
Collection<Edge> |
getEdges()
Returns the set of Edges of this Graph. |
Collection<Vertex> |
getVertices()
Returns the set of Vertices of this Graph. |
boolean |
isEmpty()
Returns whether this Graph contains no Vertices and Edges. |
| Method Detail |
|---|
Collection<Vertex> getVertices()
Collection<Edge> getEdges()
boolean isEmpty()
boolean contains(Vertex vertex)
boolean contains(Edge edge)
Collection<Graph> getConnectedSubgraphs()
Collection<Graph> getConnectedSubgraphs(Collection<Vertex> vertices,
Collection<Edge> edges)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||