apoc.generate.ba

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