Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotwrobson committed Feb 2, 2024
1 parent b13cddd commit c358e51
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions automata/base/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,11 @@ def pairwise(iterable: Iterable[T], final_none: bool = False) -> Iterable[Tuple[
return zip(a, b)


NodeT = TypeVar("NodeT")


def get_reachable_nodes(
G: nx.DiGraph,
sources: Iterable[NodeT],
sources: Iterable[Any],
reversed: bool = False,
) -> Set[NodeT]:
) -> Set[Any]:
"""
Return a set with all descendants (or predecessors if reversed is True)
of the nodes in sources.
Expand Down

0 comments on commit c358e51

Please sign in to comment.