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

Interface with igraph #20

Open
rajarshi opened this issue Apr 3, 2021 · 1 comment
Open

Interface with igraph #20

rajarshi opened this issue Apr 3, 2021 · 1 comment

Comments

@rajarshi
Copy link
Contributor

rajarshi commented Apr 3, 2021

Hi, really interesting package with some great features. It'd be really handy if it were able to use objects constructed using igraph

@akshayka
Copy link
Member

akshayka commented Apr 3, 2021

Hey, thanks for this piece of feedback. Adding new dependencies is a big change, so I'll have take some time to evaluate this.

In the meantime, if igraph has methods that return the edges and edge weights, you could pass these to the relevant functions in PyMDE (after wrapping them in torch.Tensor objects).

For example, I believe you can get the edges from an igraph object with graph.get_edgelist().

By the way, if you have feedback on the graph API that PyMDE has, or if there are other features you would like PyMDE to support (e.g., wrt to graph drawing), please let me know! There's a lot one can do to layout/draw graphs using PyMDE, but as I'm sure you're aware PyMDE does not have as rich of a graph API as NetworkX or iGraph do. My plan is to gradually layer in new features as I get a sense of what people would like.

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

No branches or pull requests

2 participants