Skip to content

Under what conditions can addLabeledEdge fail? #3

@kozross

Description

@kozross

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions