Interface EdgeMergeFunction<V>


  • public interface EdgeMergeFunction<V>
    Function defining how to merge duplicate edges when merging two graphs together.
    Author:
    David B. Bracewell
    • 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 to
        duplicateEdge - The edge on the graph which is being merged from
        factory - The factory to use if a new edge is constructed
        Returns:
        The merged edge