The algorithm in PAMI follow an hierarchical structure as shown below.
PAMI
theoreticalModel1
basic
Algo1
Algo2
…
AlgoM
closed
cAlgo1
cAlgo2 …
cAlgoM
maximal
mAlgo1
mAlgo2 …
mAlgoM
top-k
kAlgo1
kAlgo2 …
kAlgoM
…
extras
graphs
…
…
Steps to place an algorithm for a new pattern model
If the user is writing the code for new theoretical pattern model that does not exist in PAMI, then please perform the following steps:
Create a directory with name of the pattern and enter into the corresponding directory.
Generate an empty file, titled __init__.py
Create another directory, say basic, closed, or maximal, depending on the type of pattern.
Enter into this subdirectory and generate another empty file, titled __init__.py
Place your abstract.py file in this subdirectory.
Place your algorithm inheriting the abstract.py file also in this subdirectory. If your algorithm does not inherit the abstract.py file, no problem. Simply place your algorithm here.
Steps to place an algorithm for the already existing pattern model
If the user has written an algorithm for a pattern model that already exists in the PAMI repository, then perform the following steps:
Enter into the directory of the corresponding theoretical pattern model.
Enter into the subdirectory, say basic, of the corresponding model. If the subdirectory for your algorithm does not exist, then create a subdirectory, and create a __init__.py file.