Substitue networkx for igraph in main tree construction method. Saved the igraph version igraph_tree.py. Still need to clean up the latter and test each for accuracy.