Files
gonum/graph/graphs/gen/gen.go
mewmew b0a98102dc all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go

Keep original comment style (e.g. line comments and block comments).
2017-08-16 14:02:26 +02:00

22 lines
494 B
Go

// Copyright ©2015 The gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gen // import "gonum.org/v1/gonum/graph/graphs/gen"
import "gonum.org/v1/gonum/graph"
// GraphBuilder is a graph that can have nodes and edges added.
type GraphBuilder interface {
Has(graph.Node) bool
HasEdgeBetween(x, y graph.Node) bool
graph.Builder
}
func abs(a int) int {
if a < 0 {
return -a
}
return a
}