I want to run more analytics on the results of connected components algorithms.
So I get the result of the conn_comp with ease but then I cant do anything with it since I only have the id (or the community) as an attribution.
I thought of making a “community” vertex and connect every node with that id to that vertex.
following this addition, I can run more queries per each community separately.
for example, I can check what is the average outdegree in each community.
Now, I can’t find the way to run over all the nodes check their connected component id and link them to a “community” node for this id.
- how do I only create vertex if it does not exist?
- whats the best way to link nodes together by one node and its attributions (here it’s the cc_id attr)?
thanks a lot.