Install PyG
Get Started
Tutorials
Advanced Concepts
Package Reference
Cheatsheets
External Resources
Bases: GraphGenerator
GraphGenerator
Generates tree graphs.
depth (int) – The depth of the tree.
branch (int, optional) – The branch size of the tree. (default: 2)
2
undirected (bool, optional) – If set to True, the tree graph will be undirected. (default: False)
True
False