apoc.generate.complete

This is the APOC Extended documentation.

APOC Extended is not supported by Neo4j. For the officially supported APOC Core, go to the APOC Core page.

Procedure Apoc Extended

apoc.generate.complete(noNodes, label, type) - generates a random complete graph

Signature

apoc.generate.complete(noNodes :: INTEGER?, label :: STRING?, type :: STRING?) :: VOID

Input parameters

Name Type Default

noNodes

INTEGER?

null

label

STRING?

null

type

STRING?

null

Usage Examples

The following creates a graph of 10 nodes where every node is connected to all other nodes:

CALL apoc.generate.complete(10, "Node", "CONNECTED_TO");
apoc.generate.complete