bitwalker / libgraph

A graph data structure library for Elixir projects
MIT License
524 stars 75 forks source link

fix #29 #30

Closed robindaumann closed 5 years ago

robindaumann commented 5 years ago

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.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.2%) to 95.593% when pulling aa519d26c9a3142e39d3f638ec94c6128703519a on robindaumann:bugfix/undirected_edges into 0d2e8cb741eec5b4f3fefbca373689dd203b4b93 on bitwalker:master.

bitwalker commented 5 years ago

Sorry for the delay! I've been unable to get to PRs for awhile, so trying to catch up while I have a break. Thanks for the PR!