We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09af282 commit 8de3d3cCopy full SHA for 8de3d3c
build/vertexset.go
@@ -22,7 +22,7 @@ type interval struct {
22
index int // index of a in the whole set
23
}
24
25
-// updates the index values.
+// update updates the index values.
26
func (s VertexSet) update() {
27
prev := 0
28
for i, in := range s.set {
@@ -46,7 +46,7 @@ func Range(a, b int) VertexSet {
46
47
// Vertex returns a set containing the single vertex v.
48
func Vertex(v int) VertexSet {
49
- return Range(v, v+1)
+ return VertexSet{[]interval{{v, v + 1, 0}}}
50
51
52
// size returns the number of elements in this set, or -1 for the universe.
0 commit comments