torch_geometric.datasets.motif_generator.CycleMotif
- class CycleMotif(num_nodes: int)[source]
Bases:
CustomMotif
Generates the cycle motif from the “GNNExplainer: Generating Explanations for Graph Neural Networks” paper.
- Parameters:
num_nodes (int) – The number of nodes in the cycle.