Home »
MCQs »
Algorithms MCQs
True or False: The Floyd-Warshall algorithm works for both directed and undirected graphs.
28. True or False: The Floyd-Warshall algorithm works for both directed and undirected graphs.
- True
- False
- Can't say
- None
Answer
The correct answer is: A) True
Explanation
The Floyd-Warshall algorithm can be applied to both directed and undirected weighted graphs.