yet another performance improvement
This commit is contained in:
@@ -135,8 +135,8 @@ def build_network(n):
|
||||
join_nodes(g, nn(i, 'ls'), nn(neigh(i, -l_lvl * 5), 'rs'))
|
||||
|
||||
# irregular: inline ring
|
||||
join_nodes(g, nn(i, 'rs'), nn(neigh(i, +1), 'ls'), 5)
|
||||
join_nodes(g, nn(i, 'ls'), nn(neigh(i, -1), 'rs'), 5)
|
||||
join_nodes(g, nn(i, 'rs'), nn(neigh(i, +1), 'ls'))
|
||||
join_nodes(g, nn(i, 'ls'), nn(neigh(i, -1), 'rs'))
|
||||
|
||||
#if l_lvl >= 4:
|
||||
#join_nodes(g, nn(i, 'rs'), nn(neigh(i, +12), 'ls'), 6)
|
||||
|
||||
Reference in New Issue
Block a user