hfs, bfs_tree; fix add_edges bug derp