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

Get link by id #48

Open
fecorreiabr opened this issue Oct 7, 2022 · 1 comment · May be fixed by #49
Open

Get link by id #48

fecorreiabr opened this issue Oct 7, 2022 · 1 comment · May be fixed by #49

Comments

@fecorreiabr
Copy link

Hello!

Currently it's possible to get a link from the graph through several ways:

  • using getNode and iterating over the links property
  • via getLinks and getLink
  • via nodes and links iterators

However, there's no way to get a link by its id property, which would be useful if you store these ids externally (when the graph is created or changed) for later use.

@fecorreiabr fecorreiabr linked a pull request Oct 7, 2022 that will close this issue
@fecorreiabr
Copy link
Author

I believe a good solution would be to make getLink/hasLink find a link from an id if only the first argument is passed. I created a pr with a proposal for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant