We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf70743 commit c39afcaCopy full SHA for c39afca
1 file changed
pytools/graph.py
@@ -212,9 +212,12 @@ class CycleError(Exception):
212
"""
213
Raised when a topological ordering cannot be computed due to a cycle.
214
215
+ :attr node: Node in a directed graph that is part of a cycle.
216
+
217
:attr nodes: List of nodes in a directed graph that are part of a cycle.
218
219
def __init__(self, nodes: List[T]) -> None:
220
+ self.node = nodes[0]
221
self.nodes = nodes
222
223
0 commit comments