Skip to content

Commit

Permalink
🐛 delta_conformity
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed Jun 25, 2021
1 parent fbe3a43 commit aae6224
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dynetx/algorithms/assortativity.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def __label_frequency(g: dn.DynGraph, u: object, nodes: list, labels: list, hier

if isinstance(a_v, dict):
t = t_dist[v]
a_v = a_v[t]
if t in a_v:
a_v = a_v[t]
else:
continue

# indicator function that exploits label hierarchical structure
sgn[v] = 1 if a_u == a_v else __distance(label, a_u, a_v, hierarchies)
v_neigh = list(g.neighbors(v, t_dist[v]))
Expand Down

0 comments on commit aae6224

Please sign in to comment.