apoc.generate.simple

Procedure APOC Full

apoc.generate.simple(degrees, label, type) - generates a simple random graph according to the given degree distribution

Signature

apoc.generate.simple(degrees :: LIST? OF INTEGER?, label :: STRING?, type :: STRING?) :: VOID

Input parameters

Name Type Default

degrees

LIST? OF INTEGER?

null

label

STRING?

null

type

STRING?

null

Usage Examples

The following creates a graph of 5 nodes, each connected to two other nodes:

CALL apoc.generate.simple([2,2,2,2,2], "Node", "CONNECTED_TO");
apoc.generate.simple