|
||||||||||
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
void
addEdge(E edge)
void
addEdges(Collection<E> edges)
void
addVertex(V vertex)
void
addVertices(Collection<V> vertices)
Collection<E>
getEdges()
Collection<V>
getVertices()
boolean
removeEdge(E edge)
boolean
removeEdges(Collection<E> edges)
boolean
removeVertex(V vertex)
boolean
removeVertices(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