Class ArrayUnenforcedSetEdgeSetFactory<V,​E>

    • Constructor Detail

      • ArrayUnenforcedSetEdgeSetFactory

        public ArrayUnenforcedSetEdgeSetFactory()
    • Method Detail

      • createEdgeSet

        public Set<E> createEdgeSet​(V vertex)
        Create a new edge set for a particular vertex.
        Specified by:
        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)
        new set