fix topological sort for undirected graphs

``topological_sort_by_dfs`` wasn't actually being fully tested. Tests will fail because of JuliaLang/DataStructures.jl#29