The insMapEdge family of functions are partial, and will crash when you try to add an edge where one of the nodes doesn't exist in the graph. This doesn't appear to be documented anywhere. Perhaps it would make sense to either return a Maybe, or at the very least make this a no-op.
The
insMapEdge
family of functions are partial, and will crash when you try to add an edge where one of the nodes doesn't exist in the graph. This doesn't appear to be documented anywhere. Perhaps it would make sense to either return aMaybe
, or at the very least make this a no-op.