What does "number of graphs" mean in Homogeneous Graph Data? #9438
Unanswered
Srivathsan-Srinivas
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I created a custom Homogeneous Graph Dataset:
graph_data = Data(x=node_features_tensor, edge_index=edge_index_tensor, y=labels_tensor)
When I print the number of graphs, it says 3.
Graph Dataset:
I am a beginner to PyG. I just learnt how to create a PyG homogeneous dataset from custom input (csv) file. The exact print statement is:
print(f"Number of graphs: {len(graph_data)}")
Should I be worried about this? The reason why I am asking is : When I studied GNNs, the tutorials start with Zachary's Karate Club example....and that shows exactly 1 graph. Not sure how..as the dataset is prepared in advance. I am trying to create my own dataset here...and want to ensure I am not making a mistake.
To double-check my graph-data, I converted to network graph and plotted it. It turned out to be a single, connected graph. The two yellow nodes have different label than the rest of the nodes.
Beta Was this translation helpful? Give feedback.
All reactions