Previous logic allowed users to add any edge to the path when path length was one. This addresses that issue.
In addition, I updated invalid state logic to be more strict. Previously, an error would be logged to the logger, but the code was allowed to continue running. This can cause unintended side affects in the user's code when using this library.
Previous logic allowed users to add any edge to the path when path length was one. This addresses that issue. In addition, I updated invalid state logic to be more strict. Previously, an error would be logged to the logger, but the code was allowed to continue running. This can cause unintended side affects in the user's code when using this library.