You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to GraphScope and need some help regarding the following issue:
I have a use case where I want to transform a GraphScope graph to an nx.DiGraph, then use the add_node/remove_node functions, and lastly transform the nx.DiGraph back to a GraphScope graph.
I need to load the graph back to a GraphScope graph, because I want to use some of the functionalities only available for that graph type.
The problem here is, that when transforming the GraphScope graph to an nx.DiGraph, the label and id become a tuple (label, id) in nx.DiGraph.
So when I want to convert back to a GraphScope graph, I get an error that I can't use a tuple as id in the graph since the id in a GraphScope graph can only be int64_t or string.
Is there a way to deal with this problem in a somewhat performant way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everybody,
I am new to GraphScope and need some help regarding the following issue:
I have a use case where I want to transform a GraphScope graph to an nx.DiGraph, then use the add_node/remove_node functions, and lastly transform the nx.DiGraph back to a GraphScope graph.
I need to load the graph back to a GraphScope graph, because I want to use some of the functionalities only available for that graph type.
The problem here is, that when transforming the GraphScope graph to an nx.DiGraph, the label and id become a tuple (label, id) in nx.DiGraph.
So when I want to convert back to a GraphScope graph, I get an error that I can't use a tuple as id in the graph since the id in a GraphScope graph can only be int64_t or string.
Is there a way to deal with this problem in a somewhat performant way?
Beta Was this translation helpful? Give feedback.
All reactions