hash-graph
hash-graph copied to clipboard
HashMap.fromList speedup
HM.fromList offers a significant speedup over foldl' insert. I need to find an efficient way to convert from the user interface of Edge n1 label n2 to each node paired with all its half edges.
Currently solved by providing a fromList method. Still need to figure out if hashsets are exposed to the user or not.