chg: dev: fix doctests for new interface output format
chg: dev: fix doctest for new interface output format
new: dev: major refactors to the edge searching and has_edge code, added test coverage