You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
L.root= [L.root,root]; L.Et=copy(L.derH.Et) # convert to root_
44
+
L.root= [root]; L.Et=copy(L.derH.Et) # convert to root_ (L.root should be empty here? Because all new L doesn't have root assigned before they become node)
46
45
47
46
48
47
defcluster_N_(root_, L_, fd, nest=0): # top-down segment L_ by >ave ratio of L.dists
@@ -184,7 +183,7 @@ def centroid_cluster(N): # refine and extend cluster with extN_
@@ -451,7 +449,7 @@ def sum2graph(root, grapht, fd, nest): # sum node and link params into graph, a
451
449
graph.Et+=N.Et*icoef**2# deeper, lower weight
452
450
ifnest:
453
451
ifnest==1: N.root= [N.root] # initial conversion
454
-
N.root+=root+ [graph] # root is root_ in distance-layered cluster_N_
452
+
N.root=root+ [graph] # root is root_ in distance-layered cluster_N_ (should be = root + [graph] here? Because root will be incremented with each new nesting)
455
453
else: N.root=graph# single root
456
454
# sum link_ derH:
457
455
derLay=CH().add_tree([link.derHforlinkinlink_],root=graph) # root added in copy_ within add_tree
@@ -462,15 +460,17 @@ def sum2graph(root, grapht, fd, nest): # sum node and link params into graph, a
0 commit comments