kuzu: Bug: Issue with Kuzu to Networkx
What happened?
Hi,
I am using the kuzu to networkx functionality:
res = conn.execute('MATCH (u:User)-[r:Rating]->(m:Movie) RETURN u, r, m LIMIT 250')
G = res.get_as_networkx(directed=False)
When I use this for the graph I created, I noticed that it does not support multiple edges between the same nodes (say A and B have a connection between them with condition X and Y). eg: It removes
(A)-[rel: a2b {category:Y}]->(B) and only keeps (A)-[rel: a2b {category:X}]->(B).
Is there a way to resolve this?
Thanks in advance!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (10 by maintainers)
Commits related to this issue
- Address #3640 — committed to kuzudb/kuzu by mewim 2 years ago
- NetworkX multi-edge support (#3836) * Address #3640 * Refactor get_as_networkx method signature to remove type hinting error — committed to kuzudb/kuzu by mewim 2 years ago
- Rel lookup opt temp (#3871) * Operator printing (#3805) * Completed UseDatabase and TableFunctionCall Operators * Fixed Issues on TableFunctionCall and UseDatabase * Used correct function in... — committed to kuzudb/kuzu by mewim 2 years ago
- NetworkX multi-edge support (#3836) * Address #3640 * Refactor get_as_networkx method signature to remove type hinting error (cherry picked from commit 9ec04038be1015fc2ac18d02d7363be5cccdd727) (ch... — committed to ted-wq-x/kuzu by mewim 2 years ago
@Kamalika17 understood - we were discussing about making the MultiGraph the default option for the get_as_networkx method to avoid this issue. We’ll prioritize accordingly and make the fix. Again, thanks a lot for reporting!