fixes #5 and add shrtest path to graphes