✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Floyd-Warshall has finished on a directed graph with some negative edge weights.
Which feature of the final matrix says the graph has a negative cycle?