[Networkit] Request for Comments: Efficient Set Operations on Graphs
christian.staudt at kit.edu
Tue Nov 3 18:05:41 CET 2015
I would like to ask for comments on an area we have so far not worked on, namely support for set operations on graphs. For example:
- Graph.union(Graph): merge two graphs, where nodes with same id are treated as identical
- Graph.append(Graph): add the second graph as a subgraph to the first, remapping the nodes to new ids
- Graph.intersect(Graph): …..
I think all these operations can be realized with the existing Graph API (i.e. calling modifier methods on the graph). But maybe they can be implemented more efficiently by allowing access to the internals of the data structure. E.g. ,could G1.append(G2) be realized by directly appending the adjacency structure of G2 to that of G1 and remapping the indices (add G1.upperNodeIdBound() to every node id of G2).
What are your thoughts on this?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the NetworKit