Skip to content

save_state_file prints the full information of nodes #54

Description

@giava90

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions