torch_geometric.datasets.motif_generator.HouseMotif

class HouseMotif[source]

Bases: CustomMotif

Generates the house-structured motif from the “GNNExplainer: Generating Explanations for Graph Neural Networks” paper, containing 5 nodes and 6 undirected edges. Nodes are labeled according to their structural role: the top, middle and bottom of the house.