Skip to Content
数据分析之图算法: 基于Spark和Neo4j
book

数据分析之图算法: 基于Spark和Neo4j

by Mark Needham, Amy E. Hodler
September 2020
Intermediate to advanced
213 pages
5h 25m
Chinese
Posts & Telecom Press
Content preview from 数据分析之图算法: 基于Spark和Neo4j
100
6
运行这段程序,结果如下所示:
nodeA nodeB nodeC
matplotlib six python-dateutil
jupyter jpy-console ipykernel
可以看到和之前一样的
6
个库,但现在知道它们是如何连接的了。
matplotlib
six
python-
dateutil
构成一个三角形,
jupyter
jpy-console
ipykernel
构成了另一个三角形。图
6-4
示了这些三角形。
6-4:软件依赖图中的三角形
6.2.6
 使用
Neo4j
计算局部聚类系数
还可以计算局部聚类系数。以下查询将针对每个节点计算局部聚类系数:
CALL algo.triangleCount.stream('Library', 'DEPENDS_ON')
YIELD nodeId, triangles, coefficient
WHERE
coefficient > 0
RETURN
algo.getNodeById(nodeId).id
AS
library, coefficient
ORDER BY
coefficient
DESC
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

大数据项目管理:从规划到实现

大数据项目管理:从规划到实现

Ted Malaska, Jonathan Seidman
Presto实战

Presto实战

Matt Fuller, Manfred Moser, Martin Traverso
精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly

Publisher Resources

ISBN: 9787115546678