Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ifPresent and ifAbsent methods #26

Open
moaxcp opened this issue Apr 30, 2019 · 0 comments
Open

ifPresent and ifAbsent methods #26

moaxcp opened this issue Apr 30, 2019 · 0 comments
Labels
API Minor Change enhancement New feature or request

Comments

@moaxcp
Copy link
Owner

moaxcp commented Apr 30, 2019

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.

@moaxcp moaxcp added the enhancement New feature or request label Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Minor Change enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant