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

Allow sparse array representation in ArrayBasedDirectedGraph #199

Open
pankajgupta opened this issue Sep 7, 2015 · 1 comment
Open

Allow sparse array representation in ArrayBasedDirectedGraph #199

pankajgupta opened this issue Sep 7, 2015 · 1 comment

Comments

@pankajgupta
Copy link
Contributor

Currently all nodes are stored in an array of size maxNodeId+1. This is wasteful in memory when the node ids are sparsely distributed. Make a sparse representation of the collection of nodes (e.g., using fastutils int2int map or a trie, or some other home grown version) that maps node id to a node efficiently and compactly.

@pankajgupta
Copy link
Contributor Author

Working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant