permtest function

Calculate the relative importance of the edges