Error when transforming from nx.DiGraph to GraphScope graph #4095
Unanswered
RonaldMoritz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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