java.lang.Object
org.jgrapht.graph.DefaultEdgeFunction<E,T>
- Type Parameters:
E
- the edge typeT
- the value type
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Function<E,T>
public class DefaultEdgeFunction<E,T>
extends java.lang.Object
implements java.util.function.Function<E,T>, java.io.Serializable
Default implementation of an edge function which uses a map to store values.
- Author:
- Dimitrios Michail
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected T
defaultValue
protected java.util.Map<E,T>
map
-
Constructor Summary
Constructors Constructor Description DefaultEdgeFunction(T defaultValue)
Create a new functionDefaultEdgeFunction(T defaultValue, java.util.Map<E,T> map)
Create a new function -
Method Summary
-
Field Details
-
Constructor Details
-
DefaultEdgeFunction
Create a new function- Parameters:
defaultValue
- the default value
-
DefaultEdgeFunction
Create a new function- Parameters:
defaultValue
- the default valuemap
- the underlying map
-
-
Method Details