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 AbstractPropertyGraph. 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 source, ID target)
      Creates an UndirectedEdgeKey with given source and target params.
      Parameters:
      source - id of vertex
      target - id of vertex
  • Method Details