Class Path

All Implemented Interfaces:
IntVector, Serializable

public class Path extends SimpleIntVector
We represent a path in a numbered graph as a vector of integers <i_1, ..., i_n> where node i_1 is the src and node i_n is the sink
See Also:
  • Method Details

    • make

      public static Path make(int value)
    • prepend

      public static Path prepend(int x, Path p)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • size

      public int size()
    • toString

      public String toString()
      Overrides:
      toString in class Object