Skip to content

Commit

Permalink
Update documentation for topological sort and transitive reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikbraun committed Sep 19, 2022
1 parent 6a744f0 commit 21fcdda
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 @@ -170,7 +170,7 @@ fmt.Println(path)
![topological sort](img/topological-sort.svg)

```go
g := graph.New(graph.IntHash, graph.Directed(), graph.Acyclic())
g := graph.New(graph.IntHash, graph.Directed(), graph.PermitCycles())

// Add vertices and edges ...

Expand All @@ -188,7 +188,7 @@ fmt.Println(order)
![transitive reduction](img/transitive-reduction.svg)

```go
g := graph.New(graph.StringHash, graph.Directed(), graph.Acyclic())
g := graph.New(graph.StringHash, graph.Directed(), graph.PermitCycles())

// Add vertices and edges ...

Expand Down

0 comments on commit 21fcdda

Please sign in to comment.