two all-to-all pathes