MCPcopy
hub / github.com/networkx/networkx / predict

Function predict

networkx/algorithms/link_prediction.py:105–106  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

103 """
104
105 def predict(u, v):
106 return sum(1 / G.degree(w) for w in nx.common_neighbors(G, u, v))
107
108 return _apply_prediction(G, predict, ebunch)
109

Callers

nothing calls this directly

Calls 3

_communityFunction · 0.85
degreeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…