A problem in distances_adap is fixed. never necessary to assume first point in trace is source anymore. assume every point in the graph have at least one ingress point.