Package com.qfs.graph

Interface IDirectedMultiGraph<K,​V,​E>

    • Method Detail

      • addEdge

        void addEdge​(K from,
                     K to,
                     E edge)
        Add an edge between two nodes.
        Parameters:
        from - the node from which this edge should start.
        to - the node to which this edge should go.
        edge - the value held by this edge.
      • getSingleEdges

        Collection<E> getSingleEdges()
        Give all the separate edges of the graph, producing multiple items when there are multiple edges between two nodes.
        Returns:
        the separate edges of the graph.