|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
V - the type of the verticesE - the type of the edgespublic interface Graph<V,E extends Edge>
Graph is parameterized with vertex and edge
type. For example, Graph
Method Summary
voidaddEdge(E edge)
voidaddEdges(Collection<E> edges)
voidaddVertex(V vertex)
voidaddVertices(Collection<V> vertices)
Collection<E>getEdges()
Collection<V>getVertices()
booleanremoveEdge(E edge)
booleanremoveEdges(Collection<E> edges)
booleanremoveVertex(V vertex)
booleanremoveVertices(Collection<V> vertices)
Method Detail
addEdge
void addEdge(E edge)
addEdges
void addEdges(Collection<E> edges)
removeEdge
boolean removeEdge(E edge)
removeEdges
boolean removeEdges(Collection<E> edges)
addVertex
void addVertex(V vertex)
addVertices
void addVertices(Collection<V> vertices)
removeVertex
boolean removeVertex(V vertex)
removeVertices
boolean removeVertices(Collection<V> vertices)
getVertices
Collection<V> getVertices()
getEdges
Collection<E> getEdges()
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD