albertorestifo / node-dijkstra

A NodeJS implementation of Dijkstra's algorithm
MIT License
158 stars 37 forks source link

Accept a Map directly #13

Closed albertorestifo closed 7 years ago

albertorestifo commented 7 years ago

Add support for massing directly a deep Map to the Graph constructor or to addNode.

Closes #11

codecov-io commented 7 years ago

Codecov Report

Merging #13 into master will decrease coverage by 0.82%. The diff coverage is 95.65%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
- Coverage     100%   99.17%   -0.83%     
==========================================
  Files           4        5       +1     
  Lines         100      121      +21     
==========================================
+ Hits          100      120      +20     
- Misses          0        1       +1
Impacted Files Coverage Δ
libs/Graph.js 100% <100%> (ø) :white_check_mark:
libs/validateDeep.js 90% <90%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b399cbc...e596ca5. Read the comment docs.