apoc.generate.ws

Procedure Apoc Extended

apoc.generate.ws(noNodes, degree, beta, label, type) - generates a random graph according to the Watts-Strogatz model

Signature

apoc.generate.ws(noNodes :: INTEGER?, degree :: INTEGER?, beta :: FLOAT?, label :: STRING?, type :: STRING?) :: VOID

Input parameters

Name Type Default

noNodes

INTEGER?

null

degree

INTEGER?

null

beta

FLOAT?

null

label

STRING?

null

type

STRING?

null

Usage Examples

The following creates a random graph of 10 nodes, using the Watts-Strogatz model:

CALL apoc.generate.ws(10, null, null, null, null);
apoc.generate.ws