Package dev.nm.graph

Interface GraphUtils.EdgeFactory<V,​N,​E extends Edge<N>,​X>

  • Type Parameters:
    V - vertex type in the original graph
    N - node type in the new graph
    E - edge type in the new graph
    X - the type of extra information for creating an edge
    Enclosing class:
    GraphUtils

    public static interface GraphUtils.EdgeFactory<V,​N,​E extends Edge<N>,​X>
    This interface specifies how an edge is created for two nodes.
    • Method Detail

      • getEdge

        E getEdge​(V v,
                  V u,
                  X info)
        Creates an edge between two nodes.
        Parameters:
        v - a node
        u - a node
        info - other information about the edge
        Returns:
        an edge between the two nodes