Skip to content

Commit 06d4674

Browse files
committed
Document order field
1 parent 8de3d3c commit 06d4674

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/build.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ import (
4141
// by composing and filtering a set of standard graphs, or by writing
4242
// functions that describe the edges of a graph.
4343
type Virtual struct {
44+
// The `order` field is, in fact, a constant function.
45+
// It returns the number of vertices in the graph.
4446
order int
47+
4548
// The `edge` and `cost` functions define a weighted graph without self-loops.
4649
//
4750
// • edge(v, w) returns true whenever (v, w) belongs to the graph;

0 commit comments

Comments
 (0)