Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-14-2020 09:49 PM
As you can see on a figure, there are two kind of network. The first one on right hand is a main graph and another one is subgraph. My question is Are there any algorithms or techniques (cypher) that can query only the sub-graph?
Solved! Go to Solution.
10-14-2020 11:52 PM
Hello @natakorn.chanpetch
I think you should have a look at the Weakly Connected Components algorithm
Example: How to remove connected components less than x nodes?
Regards,
Cobra
10-14-2020 11:52 PM
Hello @natakorn.chanpetch
I think you should have a look at the Weakly Connected Components algorithm
Example: How to remove connected components less than x nodes?
Regards,
Cobra
10-15-2020 01:47 AM
thank you sir, it works very well for your example. I applied it a bit for solving my problem, but it not work well with a large of network (6xx nodes and 6xx relationships). By the way, I will read the wcc algorithm and understand it as fast a s possible. I hope it can tackle the problem.
10-15-2020 02:23 AM
I used the wcc algorithm's stream function to display each component (componentId) and set filtering by select only record that has the number of elements between 2 and 10 nodes. Moreover, a result was really good. Thank you again for helping me @Cobra
10-15-2020 02:24 AM
Nice, no problem, I'm happy to help
All the sessions of the conference are now available online