najdłuższe bezpośrednie połączenie