Skip to content
Discussion options

You must be logged in to vote

adj is just an internal storage of the ClusterData, which means that you probably shouldn't operate on it. We save a torch.arange vector in there as value in order to determine the original ID of edges when creating subgraphs (in order to filter edge features).

If you want to get the node degree of nodes in your graph, you can utilize torch_geometric.utils.degree, either on the original edge_index, or on the subgraph data data.edge_index returned by the ClusterData/ClusterLoader.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Antoine-ls
Comment options

Answer selected by Antoine-ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants