pnnl / chgl

Chapel HyperGraph Library (CHGL) - HPC-class Hypergraphs in Chapel
https://pnnl.github.io/chgl/
MIT License
29 stars 8 forks source link

Document Connected Components #73

Closed buddha314 closed 4 years ago

buddha314 commented 4 years ago

This issue indicates CHGL supports finding connected components: #11 but the documentation does not seem to show how to use this functionality. An example would be much appreciated. Here is one pattern from Grakn

jesunsahariar commented 4 years ago

@buddha314 Thank you for reaching out to us and for your suggestion. While we are working on documenting the use of connected components, I thought it might be helpful to point out a set of steps that can be used for computing connected components. First, there are different ways to create a hypergraph. A toy example for creating a random graph is given here. We can also process input hypergraphs in csv format. An example can be found here ( and in general ActiveDNS is a good example of how to use different algorithms available in CHGL). Next once we create the hypergraph, we can compute the vertex components or edge components as shown in the activeDNS example (here we can see the use of the API for computing connected components). But in general, the connected component algorithms are available here. Please note: in the API s=1,2,3 etc. specifies how much overlap would be considered as the glueing factor (ie. for example for two hyperedges, specifying s=2 means we would only consider these edges as connected if they have at least 2 vertices in common and so on). I hope this will be helpful. If you have any questions, please feel free to reach out to us :-) . Thanks!

github-actions[bot] commented 4 years ago

This issue is stale and should either be closed or eventually resolved.