This will calculate the total number of possible links between the points of your polygon :) This is still in progress (I have to fix some errors affecting the result)
made by me ! (@AnatoleH1)