torch_geometric.datasets.motif_generator.CustomMotif
- class CustomMotif(structure: Any)[source]
Bases:
MotifGenerator
Generates a motif based on a custom structure coming from a
torch_geometric.data.Data
ornetworkx.Graph
object.- Parameters:
structure (torch_geometric.data.Data or networkx.Graph) – The structure to use as a motif.