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

Create a graph which keeps neighboring nodes sorted by id #110

Closed
pankajgupta opened this issue Jan 15, 2015 · 5 comments
Closed

Create a graph which keeps neighboring nodes sorted by id #110

pankajgupta opened this issue Jan 15, 2015 · 5 comments

Comments

@pankajgupta
Copy link
Contributor

In some applications one needs fast intersections of adjacency lists and fast search of whether a node v is a neighbor of a node u. In such cases, a graph that keeps the adjacency list in sorted order would be great.

This should work for both in and out directions in both ArrayBasedDirectedGraph and SharedArrayBasedDirectedGraph.

@szymonm
Copy link
Contributor

szymonm commented Jan 16, 2015

What you want is:
For ArrayBasedDirectedGraph:
To keep in every node an Array of neighbors (only those existing). Use Binary Search for lookup, linear intersection. Right?

@pankajgupta
Copy link
Contributor Author

Yes, except also for others like SharedArrayBasedDirectedGraph. cc @plofgren as he was interested in this.

@pankajgupta
Copy link
Contributor Author

Is anyone working on this issue? If not, I can start working on it soon.

@szymonm
Copy link
Contributor

szymonm commented Jan 18, 2015

I can work on ArrayBasedDirectedGraph

szymonm added a commit to szymonm/cassovary that referenced this issue Jan 25, 2015
Allows nodes that store neighbors sorted in ArrayBasedGraph
@AnishShah
Copy link
Contributor

I'll try to work on SharedArrayBasedDirectedGraph .

szymonm added a commit to szymonm/cassovary that referenced this issue Jan 27, 2015
Allows nodes that store neighbors sorted in ArrayBasedGraph
szymonm added a commit to szymonm/cassovary that referenced this issue Feb 1, 2015
Allows nodes that store neighbors sorted in ArrayBasedGraph
szymonm added a commit to szymonm/cassovary that referenced this issue Feb 1, 2015
Allows nodes that store neighbors sorted in ArrayBasedGraph
pankajgupta added a commit that referenced this issue Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants