I have a large graph (millions of nodes/edges, no parallel edges or loops) in my neo4j database where nodes represent persons and edges represent friendship. I wish to find all maximal cliques (considering edges as undirected) with at least k
nodes.
A maximal clique is a clique that cannot be extended by including one more adjacent vertex, meaning it is not a subset of a larger clique
I looked into neo4j's Graph Data Science library, but could only find an algorithm for triangle cliques. Also, there seems to be a procedure apoc.algo.cliques
in apoc v3.5, but it was marked as a work in progress. I didn't find any clique algorithm in the recent versions of apoc.
Is there some cypher query or neo4j plugin that could help me? Any other way to approach this?