Class UndirectedEdgeKey<ID>

java.lang.Object
com.github.moaxcp.graphs.EdgeKey<ID>
com.github.moaxcp.graphs.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 Details

    • 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
  • Method Details