phylogenetic tree output. known edges are added into BG. test script improved a bit