apoc.generate.er

Procedure APOC Full

apoc.generate.er(noNodes, noEdges, label, type) - generates a random graph according to the Erdos-Renyi model

Signature

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

Input parameters

Name Type Default

noNodes

INTEGER?

null

noEdges

INTEGER?

null

label

STRING?

null

type

STRING?

null

Usage Examples

The following creates a random graph of 10 nodes with 3 relationships each, using the Erdos-Renyi model:

CALL apoc.generate.er(10,3,null,null);
apoc.generate.er