I have several isolated subgraphs in a graph space like: [1-2, 2-3], [4-5,5-6], [7-8]. I want to get subsets of nodes of all connected subgraphs such as:
[1,2,3], [4,5,6], [7,8] # 3 subgraphs Can I get these results in an efficient way by the nGQL in Nebula Graph?
This is typically a Graph Computation job rather than a graph database query.
In theory, we could do this with
LOOKUP xxx | GET SUBGRAPH
(or of course with a complex multipleMATCH
OpenCypher query) while, it in most cases(unless we are in an extremely small dataset, or, the graph is quite isolated).Instead, if we are talking about all isolated subgraphs, we should go for NebulaGraph Algorithm, which is Open Source, too.