added evaluation of the distance with INT_SUBGRAPH