WIP: compare sub set of graph with corrected values
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user