V
- the graph vertex typeE
- the graph edge typepublic interface EdgeSetFactory<V,E>
Set
implementation used internally by the graph to maintain sets of edges. This
provides control over performance tradeoffs between memory and CPU usage.Modifier and Type | Method and Description |
---|---|
Set<E> |
createEdgeSet(V vertex)
Create a new edge set for a particular vertex.
|
Set<E> createEdgeSet(V vertex)
vertex
- the vertex for which the edge set is being created; sophisticated factories may
be able to use this information to choose an optimal set representation (e.g.
ArrayUnenforcedSet for a vertex expected to have low degree, and LinkedHashSet for a
vertex expected to have high degree)Copyright © 2018. All rights reserved.