Interface GraphSpecificsStrategy<V,​E>

Type Parameters:
V - the graph vertex type
E - the graph edge type
All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultGraphSpecificsStrategy, FastLookupGraphSpecificsStrategy, FastutilFastLookupGSS, FastutilFastLookupIntVertexGSS, FastutilGSS, FastutilIntVertexGSS

public interface GraphSpecificsStrategy<V,​E>
extends java.io.Serializable
A graph specifics construction factory.

Such a strategy can be used to adjust the internals of the default graph implementations.

Author:
Dimitrios Michail
See Also:
FastLookupGraphSpecificsStrategy, DefaultGraphSpecificsStrategy
  • Method Details

    • getIntrusiveEdgesSpecificsFactory

      java.util.function.Function<GraphType,​IntrusiveEdgesSpecifics<V,​E>> getIntrusiveEdgesSpecificsFactory()
      Get a function which creates the intrusive edges specifics. The factory will accept the graph type as a parameter.

      Note that it is very important to use a map implementation which respects iteration order.

      Returns:
      a function which creates intrusive edges specifics.
    • getSpecificsFactory

      java.util.function.BiFunction<Graph<V,​E>,​GraphType,​Specifics<V,​E>> getSpecificsFactory()
      Get a function which creates the specifics. The factory will accept the graph type as a parameter.
      Returns:
      a function which creates intrusive edges specifics.
    • getEdgeSetFactory

      default EdgeSetFactory<V,​E> getEdgeSetFactory()
      Get an edge set factory.
      Returns:
      an edge set factory