lenght_connection_path_graph