apoc.generate.ba

Procedure APOC Full

apoc.generate.ba(noNodes, edgesPerNode, label, type) - generates a random graph according to the Barabasi-Albert model

Signature

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

Input parameters

Name Type Default

noNodes

INTEGER?

null

edgesPerNode

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 Barabasi-Albert model:

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