|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the Graph vertices typeE
- the Graph edges typepublic interface Graph<V extends Vertex,E extends Edge<V>>
A Graph data structure consists of a finite (and possibly mutable) set of ordered pairs,
called Edge
s or arcs, of certain entities called Vertex
or node.
As in mathematics, an Edge
(x,y)
is said to point or go from x
to y
.
Method Summary | |
---|---|
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) |
Method Detail |
---|
Set<V> getVertices()
Set<E> getEdges()
Set<E> getEdges(V v)
Set<V> getVertices(E e)
Vertex
on the input Edge
(2 for normal edges, > 2 for HyperEdges)
Vertex
on this Edge.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |