In line 457 the Map.fetch caused the else branch to be executed and the function returns and empty list. For an undirected graph we have to check if the edge exists in the opposite direction. I also extracted the for in 460 and 468 because the indentation was to large with the additional if check.
Coverage increased (+0.2%) to 95.593% when pulling aa519d26c9a3142e39d3f638ec94c6128703519a on robindaumann:bugfix/undirected_edges into 0d2e8cb741eec5b4f3fefbca373689dd203b4b93 on bitwalker:master.
In line 457 the Map.fetch caused the else branch to be executed and the function returns and empty list. For an undirected graph we have to check if the edge exists in the opposite direction. I also extracted the for in 460 and 468 because the indentation was to large with the additional if check.