Skip to content

Commit

Permalink
Merge pull request #21 from vsg-root/vsg-root-patch-2
Browse files Browse the repository at this point in the history
Update Algorithm.py
  • Loading branch information
vsg-root authored Jul 24, 2023
2 parents 7a8faa5 + 52733f0 commit 134425b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions routexplorer/algorithms/Algorithm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from abc import ABC, abstractmethod
from ..utils.Graph import Graph
from utils.Graph import Graph
from typing import Optional


class InvalidReturnPoint(Exception):
pass


class Algorithm(ABC):
"""
Expand All @@ -8,7 +14,7 @@ class Algorithm(ABC):

@staticmethod
@abstractmethod
def find_best_path(graph: Graph, show_load: bool = False, show_results: bool = False) -> tuple[list[str], int]:
def find_best_path(graph: Graph, return_point: Optional[str] = "R", show_load: bool = False, show_results: bool = False) -> tuple[list[str], int]:
"""
Abstract method for finding the best path in a graph.
Expand Down

0 comments on commit 134425b

Please sign in to comment.