Interface GraphSpecificsStrategy<V,E>

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

public interface GraphSpecificsStrategy<V,E> extends 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:
  • Method Details

    • getIntrusiveEdgesSpecificsFactory

      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

      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