Install PyG
Get Started
Tutorials
Advanced Concepts
Package Reference
Cheatsheets
External Resources
Bases: BaseTransform
BaseTransform
Adds the node degree as one hot encodings to the node features (functional name: one_hot_degree).
one_hot_degree
max_degree (int) – Maximum degree.
in_degree (bool, optional) – If set to True, will compute the in-degree of nodes instead of the out-degree. (default: False)
True
False
cat (bool, optional) – Concat node degrees to node features instead of replacing them. (default: True)