MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / score_all

Function score_all

graphify/cluster.py:268–269  ·  view source on GitHub ↗
(G: nx.Graph, communities: dict[int, list[str]])

Source from the content-addressed store, hash-verified

266
267
268def score_all(G: nx.Graph, communities: dict[int, list[str]]) -> dict[int, float]:
269 return {cid: cohesion_score(G, nodes) for cid, nodes in communities.items()}
270
271
272def remap_communities_to_previous(

Callers 10

mainFunction · 0.90
_rebuild_codeFunction · 0.90
_make_graphFunction · 0.90
run_pipelineFunction · 0.90
_make_graphFunction · 0.90
make_inputsFunction · 0.90

Calls 2

cohesion_scoreFunction · 0.70
itemsMethod · 0.45