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

Most upvoted comments

@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!