mx_tree.py 203 Bytes
Newer Older
zzhang-cn's avatar
zzhang-cn committed
1
2
3
4
5
6
7
8
9
10
import networkx as nx
import mx

tr = nx.balanced_tree(3, 4)
tr = mx.mx_Graph(tr)

# now we have made a skeleton tree, we can register
# representations to a subset of the nodes, and then
# update them