Class DefaultEdgeFunction<E,T>
java.lang.Object
org.jgrapht.graph.DefaultEdgeFunction<E,T>
- Type Parameters:
E- the edge typeT- the value type
- All Implemented Interfaces:
Serializable, Function<E,T>
Default implementation of an edge function which uses a map to store values.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEdgeFunction(T defaultValue) Create a new functionDefaultEdgeFunction(T defaultValue, Map<E, T> map) Create a new function -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
map
-
defaultValue
-
-
Constructor Details
-
DefaultEdgeFunction
Create a new function- Parameters:
defaultValue- the default value
-
DefaultEdgeFunction
-
-
Method Details
-
apply
-
get
-
set
-