You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The concept here is to add methods to Vertex similar to connectTo and connectFrom` but with a check.
connectToIfPresent(ID to) creates an edge from this vertex to to if to exists. connectFromIfPresent(ID from) creates an edge to this vertex from from if from exists. connectToIfAbsent(ID to) creates an edge from this vertex to to if to does not exist. connectFromIfAbsent(ID from) creates an edge to this vertex from from if from does not exist.
The text was updated successfully, but these errors were encountered:
The concept here is to add methods to
Vertex
similar toconnectTo
and connectFrom` but with a check.connectToIfPresent(ID to)
creates an edge from this vertex toto
ifto
exists.connectFromIfPresent(ID from)
creates an edge to this vertex fromfrom
iffrom
exists.connectToIfAbsent(ID to)
creates an edge from this vertex toto
ifto
does not exist.connectFromIfAbsent(ID from)
creates an edge to this vertex fromfrom
iffrom
does not exist.The text was updated successfully, but these errors were encountered: