if(mydata&&nnodes!=getNumberOfDataPoints())error("mismatch between number of data points in trajectory and the dimensions of the dissimilarity matrix");
if(mydata&&nnodes!=getNumberOfDataPoints())error("mismatch between number of data points in trajectory and the dimensions of the dissimilarity matrix");
if(dissimilarities.size()>nnodes)error("number of rows in input matrix should be less than or equal to the number of columns");