ploneintranet.pagerank package

Submodules

ploneintranet.pagerank.compute module

class ploneintranet.pagerank.compute.Compute

Bases: object

Compute PageRank per node on the object/user/tag/etc graph.

pagerank(edge_weights={}, context=None, context_weight=10)
personalized_pageranks(edge_weights={}, context_weight=10)
class ploneintranet.pagerank.compute.ComputeMapReduce(edge_weights={}, context_weight=10)

Bases: ploneintranet.pagerank.compute.Compute

datasource()
mapfn(k, v)
mapreduce_pageranks(clients=8)
reducefn(k, vs)

ploneintranet.pagerank.graph module

class ploneintranet.pagerank.graph.Graphs

Bases: object

calculate()

Lazy initialization.

content_authors()
content_tags()
content_tree()
social_following()
unify(edge_weights={})

Return a unified DiGraph containing all subgraphs, with edges weighted differently per subgraph.

ploneintranet.pagerank.setuphandlers module

ploneintranet.pagerank.testing module

ploneintranet.pagerank.testing_config module

Module contents