MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / wt

Function wt

easygraph/functions/basic/cluster.py:20–21  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

18 ret = []
19
20 def wt(u, v):
21 return G[u][v].get(weight, 1) / max_weight
22
23 for i, nbrs in nodes_nbrs:
24 inbrs = set(nbrs) - {i}

Calls

no outgoing calls

Tested by

no test coverage detected