apoc.generate.ws

过程 Apoc 扩展

apoc.generate.ws(noNodes, degree, beta, label, type) - 根据 Watts-Strogatz 模型生成随机图

签名

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

输入参数

名称 类型 默认

noNodes(节点数)

整数?

null

degree (度)

整数?

null

beta (β 参数)

FLOAT?

null

标签 (label)

STRING?

null

type

STRING?

null

使用示例

以下示例使用 Watts-Strogatz 模型创建了一个包含 10 个节点的随机图

CALL apoc.generate.ws(10, null, null, null, null);
apoc.generate.ws
© . This site is unofficial and not affiliated with Neo4j, Inc.