apoc.generate.complete

Procedure APOC Full

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