DPdistance function

calculate degree profile distances between 2 graphs.