Description: A path is either a simple path or a cycle (or both). (Contributed by BTernaryTau, 20-Oct-2023)