java.lang.Object
org.jgrapht.graph.DefaultEdgeFunction<E,T> 
- Type Parameters:
- E- the edge type
- T- the value type
- All Implemented Interfaces:
- Serializable,- Function<E,- T> 
Default implementation of an edge function which uses a map to store values.
- Author:
- Dimitrios Michail
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultEdgeFunction(T defaultValue) Create a new functionDefaultEdgeFunction(T defaultValue, Map<E, T> map) Create a new function
- 
Method Summary
- 
Field Details- 
map
- 
defaultValue
 
- 
- 
Constructor Details- 
DefaultEdgeFunctionCreate a new function- Parameters:
- defaultValue- the default value
 
- 
DefaultEdgeFunctionCreate a new function- Parameters:
- defaultValue- the default value
- map- the underlying map
 
 
- 
- 
Method Details- 
applyGet the function value for an edge.
- 
getGet the function value for an edge.- Parameters:
- e- the edge
- Returns:
- the function value for the edge
 
- 
setSet the function value for an edge.- Parameters:
- e- the edge
- value- the value
 
 
-