Skip to content

Commit

Permalink
Fixed grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
simphotonics committed Nov 4, 2024
1 parent de2453f commit 49ec09b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ for finding:
* the shortest path between vertices,
* the path with the lowest/highest weight (for weighted directed graphs),
* all paths connecting two vertices,
* the shortest paths from a vertice to all connected vertices,
* the shortest paths from a vertex to all connected vertices,
* cycles,
* a topological ordering of the graph vertices.

Expand Down Expand Up @@ -65,7 +65,7 @@ To use this library include [`directed_graph`][directed_graph] as a dependency i
example below shows how to construct an object of type [`DirectedGraph`][DirectedGraph].

The graph classes provided by this library are generic with type argument
`T extends Object`, that is vertice must be non-nullable.
`T extends Object`, that is `T` must be non-nullable.
Graph vertices can be sorted if `T is Comparable` or
if a custom comparator function is provided. In the example below, a custom
comparator is used to sort vertices in inverse lexicographical order.
Expand Down

0 comments on commit 49ec09b

Please sign in to comment.