Package com.gengoai.graph
Interface EdgeMergeFunction<V>
-
public interface EdgeMergeFunction<V>
Function defining how to merge duplicate edges when merging two graphs together.- Author:
- David B. Bracewell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Edge<V>
merge(Edge<V> originalEdge, Edge<V> duplicateEdge, EdgeFactory<V> factory)
Merges the information related to two edges defined over the same vertices creating a new edge.
-
-
-
Method Detail
-
merge
Edge<V> merge(Edge<V> originalEdge, Edge<V> duplicateEdge, EdgeFactory<V> factory)
Merges the information related to two edges defined over the same vertices creating a new edge.- Parameters:
originalEdge
- The edge on the graph which is being merged toduplicateEdge
- The edge on the graph which is being merged fromfactory
- The factory to use if a new edge is constructed- Returns:
- The merged edge
-
-