Codes and dataset for reproducing the results described in the paper:

Miguel Valério, Fabio Tamburini, Michele Corazza,
"Divergence in calendric lists supports alternative
sub-grouping of East-Polynesian languages"

The main folder of the .zip file contains the code for computing the distances 
between calendric lists.

Results were obtained with these code dependencies:

python      3.7.16
numpy       1.21.5
scipy       1.7.3
bio         1.6.2
biotite     0.40.0
matplotlib  3.5.3
networkx    2.6.3
pandas      1.3.5
splitspy	0.0.10

By running the command

> python3 PolyLunar_PAR.py EPolyCal_dataset.csv '-1.0' 10000 X 

the code generates a distance matrix between calendric lists and stores it in 
the file "EPolyCal_dataset_distances_X_10000.txt". You can compare the obtained
results with ours in "EPolyCal_dataset_distances_X_10000_REF.txt".
The input file "EPolyCal_dataset.csv" contains the full dataset of
calendric lists.

The "GRAPHS" folder contains the code for plotting the base form of the paper's
figures. Running the following commands

> cd GRAPHS
> python3 CreateNJGraph.py ../EPolyCal_dataset_distances_X_10000_REF.txt

will create all graphs.

