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
        Overrides:
        isValid in class Walk
        Returns:
        True if valid, otherwise false.