Class Path

    • Constructor Detail

      • Path

        public Path()
    • Method Detail

      • isValid

        public boolean isValid()
        Tests if the path is valid. A valid path satisfies two conditions:

        1. Each pair of adjacent nodes share an edge.
        2. There are no node repetitions.
        Specified by:
        isValid in interface NodeSequence
        isValid in class Walk
        True if valid, otherwise false.