We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
注意一下 graph_test.py 的第 95 行,代码的原意是检查边集是否有重。
graph_test.py
但是,由于 Edge 类没有定义 __hash__ 和 __eq__,两个不同的对象永远不会被 set 判定为相等。
Edge
__hash__
__eq__
set
我在着手修复这项问题:#143
cyaron/cyaron/tests/graph_test.py
Lines 82 to 96 in c92f60d
cyaron/cyaron/graph.py
Lines 9 to 35 in c92f60d
相关行为参阅:
The text was updated successfully, but these errors were encountered:
再注意一下第 86 行,合理猜测写这段代码的人发现 test 老是 fail,然后把 fail 的地方改了
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
注意一下
graph_test.py
的第 95 行,代码的原意是检查边集是否有重。但是,由于
Edge
类没有定义__hash__
和__eq__
,两个不同的对象永远不会被set
判定为相等。我在着手修复这项问题:#143
cyaron/cyaron/tests/graph_test.py
Lines 82 to 96 in c92f60d
cyaron/cyaron/graph.py
Lines 9 to 35 in c92f60d
相关行为参阅:
The text was updated successfully, but these errors were encountered: