-
-
Notifications
You must be signed in to change notification settings - Fork 206
Obtain an edges vector in a form suitable for make_graph() #864
Copy link
Copy link
Open
Labels
AI 🤖For issues that can be handled by a coding agent. A scheduled workflow will look at those.For issues that can be handled by a coding agent. A scheduled workflow will look at those.wishlistFeature request that has not been chosen for implementation yet; vote or comment to prioritize it!Feature request that has not been chosen for implementation yet; vote or comment to prioritize it!
Milestone
Metadata
Metadata
Assignees
Labels
AI 🤖For issues that can be handled by a coding agent. A scheduled workflow will look at those.For issues that can be handled by a coding agent. A scheduled workflow will look at those.wishlistFeature request that has not been chosen for implementation yet; vote or comment to prioritize it!Feature request that has not been chosen for implementation yet; vote or comment to prioritize it!
What is the feature or improvement you would like to see?
There should be a function that retrieves an edge list in a form suitable for
make_graph(), as well as suitable for the C functionigraph_create().as_edgelist()returns a matrix, not a vector, and converting to a vector gives the vertex IDs in the wrong order:Instead one must transpose the matrix first, which is inefficient:
A more efficient way is
but this uses an internal function.
Use cases for the feature
For libraries that need to convert igraph graphs efficiently, such as leidenbase or leidenalg.
References