apoc.generate.simple

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.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