Install PyG
Get Started
Tutorials
Advanced Concepts
Package Reference
Cheatsheets
External Resources
Bases: BaseTransform
BaseTransform
Converts a sparse adjacency matrix to a dense adjacency matrix with shape [num_nodes, num_nodes, *] (functional name: to_dense).
[num_nodes, num_nodes, *]
to_dense
num_nodes (int, optional) – The number of nodes. If set to None, the number of nodes will get automatically inferred. (default: None)
None