-
- Type Parameters:
V
- the graph vertex typeE
- 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:
FastLookupGraphSpecificsStrategy
,DefaultGraphSpecificsStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EdgeSetFactory<V,E>
getEdgeSetFactory()
Get an edge set factory.Function<GraphType,IntrusiveEdgesSpecifics<V,E>>
getIntrusiveEdgesSpecificsFactory()
Get a function which creates the intrusive edges specifics.BiFunction<Graph<V,E>,GraphType,Specifics<V,E>>
getSpecificsFactory()
Get a function which creates the specifics.
-
-
-
Method Detail
-
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
-
-