Skip to content
New issue

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

save_state_file prints the full information of nodes #6

Closed
IngoScholtes opened this issue Sep 14, 2018 · 1 comment
Closed

save_state_file prints the full information of nodes #6

IngoScholtes opened this issue Sep 14, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@IngoScholtes
Copy link
Contributor

From pathpy created by giava90 : sg-dev/pathpy#54

It creates a file where after the #Vertices , it writes each node with all its properties, e.g.

*Vertices 5
0 "{'inweight': array([ 0.,  0.]), 'outweight': array([ 5.,  2.]), 'indegree': 0, 'outdegree': 1}"
1 "{'inweight': array([ 11.,   3.]), 'outweight': array([ 11.,   5.]), 'indegree': 2, 'outdegree': 2}"
2 "{'inweight': array([ 0.,  0.]), 'outweight': array([ 6.,  1.]), 'indegree': 0, 'outdegree': 1}"
3 "{'inweight': array([ 5.,  3.]), 'outweight': array([ 0.,  0.]), 'indegree': 1, 'outdegree': 0}"
4 "{'inweight': array([ 6.,  2.]), 'outweight': array([ 0.,  0.]), 'indegree': 1, 'outdegree': 0}"

Instead, we usually need only its name (at least when using this .net files for infomap), e.g.

0  "1"
1 "2"
2 "3"
3 "4"
4 "5"
@IngoScholtes
Copy link
Contributor Author

fixed in #511c3da

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant