Class LabeledGraph

java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.utils.LabeledGraph

public class LabeledGraph extends Object
This class models graphs with labeled edges. Nodes and edge labels are modeled as CypherVar objects. Edges can be directed or not. A pair of nodes can have an arbitrary number of edges between them. Nodes can have edges that start and end on themselves.
  • Field Details

  • Constructor Details

  • Method Details

    • removePath

      public void removePath(LabeledGraph.Path path)
      removes the edges contained in path
    • getLongestPath

      public LabeledGraph.Path getLongestPath()
      Enumerates all possible paths and returns the longest found. In case of ties, it returns the first longest path found.
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object