According to the docs, addLabeledEdge has the following type:
addLabeledEdge :: (MLabeledEdge g, PrimMonad m, MonadRef m) =>
g m -> Vertex -> Vertex -> MEdgeLabel g -> m (Maybe Edge)
Under what conditions will the resulting Maybe Edge be Nothing? Specifically, I assume that, unless both Vertexes are in g m, this will not create an Edge. Am I correct in this assumption?
According to the docs,
addLabeledEdgehas the following type:Under what conditions will the resulting
Maybe EdgebeNothing? Specifically, I assume that, unless bothVertexes are ing m, this will not create anEdge. Am I correct in this assumption?