Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dynamic_programming/floyd_warshall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void print(int dist[], int V) {

// The main function that finds the shortest path from a vertex
// to all other vertices using Floyd-Warshall Algorithm.
void FloydWarshall(Graph graph) {
void FloydWarshall(Graph& graph) {
int V = graph.vertexNum;
int dist[V][V];

Expand Down
Loading