graph/simple: fix documentation
MODIFY
graph/simple/directed.go
graph/simple/directed.go
@@ -20,8 +20,7 @@ type DirectedGraph struct {
nodeIDs uid.Set
}
-// NewDirectedGraph returns a DirectedGraph with the specified self and absent
-// edge weight values.
+// NewDirectedGraph returns a DirectedGraph.
func NewDirectedGraph() *DirectedGraph {
return &DirectedGraph{
nodes: make(map[int64]graph.Node),

MODIFY
graph/simple/undirected.go
graph/simple/undirected.go
@@ -19,8 +19,7 @@ type UndirectedGraph struct {
nodeIDs uid.Set
}
-// NewUndirectedGraph returns an UndirectedGraph with the specified self and absent
-// edge weight values.
+// NewUndirectedGraph returns an UndirectedGraph.
func NewUndirectedGraph() *UndirectedGraph {
return &UndirectedGraph{
nodes: make(map[int64]graph.Node),

graph/simple: fix documentation