Definition

Subgraph pattern miner (SPMiner) is a model for identifying frequent subgraphs (network motifs) in a graph.
Architecture
The frequent subsampling counting problem consists of two stages: searching over all possible motifs, and counting the frequency of each motif in graph. SPMiner consists of two steps: Embedding candidate subgraphs, and motif search procedure.
Embedding candidate subgraphs

SPMiner decomposes the input Graph into many overlapping node-anchored neighborhoods around each node. Then encodes each subgraph into an order embedding space.
Motif Search Procedure

SPMiner then directly reasons in the embedding space to identify frequent motifs. It searches for a -step walk in the embedding space that stays to the lower left of as many neighborhoods as possible. The walk is performed by iteratively adding nodes and edges to the current motif candidate, and tracking its embedding.
Given an order embedding encoder , let a Graph generation procedure be , where at any step , is generated by adding node to . Then the sequence of embeddings is a monotonic walk in the order embedding space. Finding the frequent motif is the same as finding a walk that
SPMiner can quickly count the number of occurrences of a given motif by simply checking the number of neighborhoods that are embedded to the top-right of it in the embedding space