Skip to content
Snippets Groups Projects
Commit 1440ffd5 authored by Duncan Coutts's avatar Duncan Coutts Committed by Edward Z. Yang
Browse files

Change Graph.fromList to fromDistinctList and fix conseqeunces

It's really an error to try and build a graph where you have duplicate
node keys, so remove Graph.fromList and add Graph.fromDistinctList. This
check is always on, not just an assertion, becuase we get it for free
given the way Maps can be constructed.

All uses of Graph.fromList are ok to convert to fromDistinctList.
parent 5b4e95c6
No related branches found
No related tags found
No related merge requests found
Showing
with 62 additions and 44 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment