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