Skip to main content
. Author manuscript; available in PMC: 2024 Sep 1.
Published in final edited form as: Artif Intell Med. 2023 May 22;143:102576. doi: 10.1016/j.artmed.2023.102576

Algorithm 1.

Frequent Temporal Pattern Mining Algorithm

1: procedure frequent_temporal_pattern_mining(DS,minfreq)
2:  Initialize DS* ▷ An empty set to record CIGs associated with temporal networks.
3: for TDS do
4:   Initialize CIG with empty vertex and edge sets
5:   for edgeT do
6:    Add a vertex v to CIG corresponding to edge
7:    Label v in CIG with the endpoints’ and edge’s labels and duration of edge
8:    Identify other overlapping edges es in T read prior to edge and with vertices in common with edge and with vertices in common with edge
9:    Connect es corresponding vertices in CIG to v with directed edges
10:    Label the connections with their starting points’ differences in T
11:   Append CIG to DS*
12: frequent_temporal_patterns = PATTERN_MINING(DS*,minfreq)
13:  Return frequent_temporal_patterns