Comments (2)
I can reproduce this error with NetworkX 2.2, but not with NetworkX 1.9 or 1.11. I suspect the error is caused by a change introduced in NetworkX 2.1.
Just before line 231, postman.py
calls NetworkX's max_weight_matching()
:
best_matching = nx.max_weight_matching(graph, True)
matchings = [best_matching]
for u, v in best_matching.items():
NetworkX 2.1 changed the return type for max_weight_matching()
from dictionary to set. Compare the documentation for NetworkX 1.11 max_weight_matching
with NetworkX 2.1 max_weight_matching
. See also networkx/networkx#2774.
from chinese-postman.
Fixed in #18.
from chinese-postman.
Related Issues (18)
- failed by: AttributeError: 'generator' object has no attribute 'sort' HOT 3
- Turn-by-Turn? HOT 2
- Error: Could not find any components. Try selecting different features. HOT 2
- Error postman.py HOT 1
- Inaccurate results for trivial problems HOT 4
- cant export from qgis HOT 2
- Incompatible with QGIS 2 HOT 7
- AttributeError: module 'networkx' has no attribute 'connected_component_subgraphs' HOT 8
- Unable to install plugin in QGIS 3.14.0-Pi HOT 1
- "Chinese Postman Solver" not found in QGIS plugin manager. HOT 5
- Tips for using the Chinese Postman plugin HOT 1
- AttributeError: module 'networkx' has no attribute 'connected_component_subgraphs' HOT 12
- Cannot import gcd from fractions HOT 1
- icon.png HOT 4
- No module named resources HOT 1
- Slightly off topic - CRS? HOT 7
- Windy Chinese Postman HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinese-postman.