V - the graph vertex typeE - the graph edge typepublic class ArrayUnenforcedSetEdgeSetFactory<V,E> extends java.lang.Object implements EdgeSetFactory<V,E>, java.io.Serializable
ArrayUnenforcedSet of size 1, suitable for small degree
vertices.| Constructor and Description |
|---|
ArrayUnenforcedSetEdgeSetFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<E> |
createEdgeSet(V vertex)
Create a new edge set for a particular vertex.
|
public java.util.Set<E> createEdgeSet(V vertex)
createEdgeSet in interface EdgeSetFactory<V,E>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 © 2019. All Rights Reserved.