1: |
procedure
pattern_mining() |
2: |
one_vertex: Set of vertices in with frequencies
|
3: |
one_edge: Set of unique edges in with frequencies
|
4: |
frequent_patterns = {one_vertex,one_edge} |
5: |
procedure
frequent_pattern_mining(,candidate) |
6: |
if
is_valid(candidate) then ▷ If candidate is the representative of all the networks isomorphic to candidate. |
7: |
frequent_pattern ← candidate
|
8: |
Append frequent_pattern to frequentl_patterns
|
9: |
Extend frequent_pattern with edges in one_edge → candidates
|
10: |
for
candidate ∈ candidates
do
|
11: |
|
12: |
if
then
|
13: |
FREQUENT_PATTERN_MINING(,candidate) |
14: |
for
e ∈ one_edge
do
FREQUENT_PATTERN_MINING() |
15: |
Return frequent_patterns
|