WIP: compare sub set of graph with corrected values

This commit is contained in:
2026-03-14 17:33:33 +01:00
parent 4c87d4e7b0
commit 2ef0343338
3 changed files with 218 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ def correct(G, centrality, m_opt, c0_opt, b_opt):
@param b_opt [Float] Model b value (intersection point)
@return [VertexPropertyMap] Corrected centrality values based on @param centrality
"""
corrected_metric = {}
corrected_metric = centrality
pos = G.vp["pos"]
x = []
y = []
@@ -57,7 +57,7 @@ def correct(G, centrality, m_opt, c0_opt, b_opt):
y.append(ver[1])
keys = iter(centrality.a)
hull = convex_hull(x, y)
hull = convex_hull(G)
points = np.stack((np.array(x), np.array(y)), axis=-1)
for point in pos: