BlueBrain / BlueGraph

Python framework for graph analytics and co-occurrence analysis
https://bluegraph.readthedocs.io
Apache License 2.0
31 stars 5 forks source link

Add support for multigraphs in PGFrames #72

Open eugeniashurko opened 3 years ago

eugeniashurko commented 3 years ago

Currently, only one edge between a pair of nodes in allowed. For some use cases, it would be useful to support multiedges. For example:

Alice and Bob have two relationships, friends and colleagues, with different properties. It could be represented as:

@source_id, @target_id, @edge_id, @type, @since
"Alice", "Bob", 1, "friends", 1999
"Alice", "Bob", 2, "colleagues", 1998

Where the index of the dataframe with edges is given by @source_id, @target_id, @edge_id