Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
dranidis committed Mar 29, 2021
1 parent 31b7fd4 commit c9aa4d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ const edges = [{ from: 'a', to: 'c', weight: 1 }];
*/

// creates a directed graph with the explicit set of nodes and edges.
const g2 = new FloydWarshall(nodes, edges);
const g1 = new FloydWarshall(nodes, edges);

// creates an undirected graph with the explicit set of nodes and edges.
const g1 = new FloydWarshall(nodes, edges, false);
const g2 = new FloydWarshall(nodes, edges, false);

/**
* FloydWarshall<T>(edges: Edge<T>[], directed = true)
Expand All @@ -105,5 +105,5 @@ const g1 = new FloydWarshall(nodes, edges, false);
const g3 = new FloydWarshall(edges);

// creates an undirected graph with the implicit set of nodes: {'a', 'c'}
const g3 = new FloydWarshall(edges, false);
const g4 = new FloydWarshall(edges, false);
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"lint": "eslint . --ext .ts"
},
"keywords": [
"Floy-Warshall",
"Floy-Warshall's algorithm",
"Floyd-Warshall",
"Floyd-Warshall's algorithm",
"shortest path",
"graph"
],
Expand Down

0 comments on commit c9aa4d6

Please sign in to comment.