-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feature: Add DiGraph, MultiGraph and MultiDiGraph graph types in Python bindings #398
Comments
@davvard, can you please share the table describing expected behavior for edge ID generation here? |
|
So |
@ashvardanian Yes, that's correct. |
Gotcha, @davvard . Can you please patch it into a more readable form with 4 columns, so that its easier to reason about it. Is it a good idea to have both auto-generation and user-defined IDs in the same class? In that case the user may end up accidentally overwriting and edge we have created... isn't that the case? Is this how NetworkX works? |
@ashvardanian Yes I think it is good idea...if you create edges with attributes with auto-generation and after it you add edge with ID that already exists the program will merge edge attributes...This is how NetworkX works.
|
Gotcha! Full compatibility is great! And how do they generate the IDs, @davvard ? |
@ashvardanian They start from 0 for every (source, target) |
|
@davvard That sounds ugly... as we would either need to store a counter for every pair... or retrieve the list of all the neighbors every time. Which IDs will NetworkX generate for the edge between nodes A and B ?
|
@ashvardanian NetworkX will generate this IDs
|
Describe what you are looking for
I am looking for DiGraph, MultiGraph and MultiDiGraph graph types in Python bindings
Can you contribute to the implementation?
Is your feature request specific to a certain interface?
Official Python bindings
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: