Skip to content

Commit c39afca

Browse files
maintain node attr
1 parent bf70743 commit c39afca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytools/graph.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,12 @@ class CycleError(Exception):
212212
"""
213213
Raised when a topological ordering cannot be computed due to a cycle.
214214
215+
:attr node: Node in a directed graph that is part of a cycle.
216+
215217
:attr nodes: List of nodes in a directed graph that are part of a cycle.
216218
"""
217219
def __init__(self, nodes: List[T]) -> None:
220+
self.node = nodes[0]
218221
self.nodes = nodes
219222

220223

0 commit comments

Comments
 (0)