PageRank¶
Bigflow Python代码示例: 实现PageRank
Author: Wang, Cong(bigflow-opensource@baidu.com)
-
bigflow.example.pagerank.
pagerank_algo
(edges)¶ 接受表示网页链接关系的PCollection,求出每个网页的Rank指标
参数: edges (PCollection) -- 输入PCollection,格式为(from_page_id, to_page_id) - Result:
- PCollection: 表示结果的PCollection,格式为(page_id, rank)