|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.graph.model.BaseGraph<V,E>
V - the Graph vertices typeE - the Graph edges typepublic abstract class BaseGraph<V extends Vertex,E extends Edge<V>>
Basic abstract in-memory based of a simple read-only Graph implementation.
Subclasses may load adjacency list/edges set in the constructor,
or expose MutableGraph APIs.
| Constructor Summary | |
|---|---|
BaseGraph()
|
|
| Method Summary | |
|---|---|
protected Map<V,Set<E>> |
getAdjacencyList()
Returns the adjacency list where stored vertex/edges. |
protected Set<E> |
getAllEdges()
Returns the set with all Graph edges. |
Set<E> |
getEdges()
Returns the total set of Edges in the graph. |
Set<E> |
getEdges(V v)
Returns all edges which touch this vertex, where the input vertex is in the edge head. |
Set<V> |
getVertices()
Returns the total set of Vertices in the graph. |
Set<V> |
getVertices(E e)
Return the set of Vertex on the input Edge (2 for normal edges, > 2 for HyperEdges) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseGraph()
| Method Detail |
|---|
public final Set<V> getVertices()
getVertices in interface Graph<V extends Vertex,E extends Edge<V>>public final Set<E> getEdges()
getEdges in interface Graph<V extends Vertex,E extends Edge<V>>public final Set<E> getEdges(V v)
getEdges in interface Graph<V extends Vertex,E extends Edge<V>>public final Set<V> getVertices(E e)
Vertex on the input Edge (2 for normal edges, > 2 for HyperEdges)
getVertices in interface Graph<V extends Vertex,E extends Edge<V>>Vertex on this Edge.protected final Map<V,Set<E>> getAdjacencyList()
protected final Set<E> getAllEdges()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||