fix topological sort for undirected graphs

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