-
Notifications
You must be signed in to change notification settings - Fork 310
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
isolated vertices are not being captured properly when initializing a Graph with an adjacency matrix #1478
Comments
The new graph object construction code can handle this properly as long as the python code calls the construction properly. The legacy graph object construction code in C++ should handle this properly except in the case where there are isolated vertices at the end of the vertex list. We need to prioritize/schedule this accordingly. If we can wait until we migrate to the new graph objects (C++) then this problem will be corrected at that point. If we need to fix it sooner then we will need to update the legacy implementation to properly handle isolated vertices at the end of the vertex list. |
Note that #3982 adds parameters to the C API that can address this. The python layer would need to be updated to pick up these changes in the case of an adjacency matrix. |
Isolated vertices are lost when we initialize a Graph using an adj list:
This is likely due to internally converting the numpy array to an edgelist, which is then used to initialize the Graph. We may be able to at least capture the correct number of vertices by looking at the incoming array's shape (which would also allow us to assert it's square).
The text was updated successfully, but these errors were encountered: