Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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}
Callers
4
_local_weighted_triangles_and_degree_iter_parallel
Function · 0.70
_weighted_triangles_and_degree_iter
Function · 0.70
_local_directed_weighted_triangles_and_degree_parallel
Function · 0.70
_directed_weighted_triangles_and_degree_iter
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected