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
Looking for a function that generates a dataframe consisting of nodeId and nodeLabel
When the graph does not have any node attributes (just nodeId and nodeLabels are present), I cannot find a way to get the nodeLabels back. The nodeProperties.stream returns an empty dataframe. (This is working fine when we do have any node properties).
Additionally, G.node_labels() only produces a list of labels without mapping them to the corresponding nodeIds. I checked the G._graph_info dictionary as well, but the map does not seem to be stored there.
For edges, we have gds.graph.relationships.stream and gds.graph.relationshipProperties.stream, which support retrieving edges with or without properties. However, I couldn't find similar functionalities for nodes.