Skip to content

Commit 12be2c9

Browse files
committed
Improve examples
1 parent 3b09c79 commit 12be2c9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

example_dfs_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ func (d *DFSData) dfsVisit(g graph.Iterator, v int) {
6464
d.Finish[v] = d.Time
6565
}
6666

67-
// An implementation of depth-first search
68-
// demonstrating how to use this package.
67+
// Show how to use this package by implementing a complete depth-first search.
6968
func Example_dFS() {
7069
// Build a small directed graph:
7170
//

examples_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/yourbasic/graph"
66
)
77

8-
// How to iterate over the edges of a graph.
8+
// Build a plain graph and visit all of its edges.
99
func Example_basics() {
1010
// Build a graph with four vertices and four undirected edges.
1111
// (Each of these edges are, in fact, represented by two directed

0 commit comments

Comments
 (0)