Class UndirectedEdgeKey<ID>

  • Type Parameters:
    ID - type of identifier

    public final class UndirectedEdgeKey<ID>
    extends EdgeKey<ID>
    Used by undirected implementations of AbstractGraph. AbstractGraph uses instances of this class as identifiers for Edges in the graph. In the case of undirected graphs two edges are equal if they connect the same endpoints regardless of order.
    • Constructor Detail

      • UndirectedEdgeKey

        public UndirectedEdgeKey​(ID from,
                                 ID to)
        Creates an UndirectedEdgeKey with given from and to params.
        Parameters:
        from - id of vertex
        to - id of vertex