mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 15:47:01 +08:00
all: gofmt -s
This commit is contained in:
@@ -248,7 +248,7 @@ func (g *DirectedGraph) SetLine(l graph.Line) {
|
|||||||
|
|
||||||
switch {
|
switch {
|
||||||
case g.from[fid] == nil:
|
case g.from[fid] == nil:
|
||||||
g.from[fid] = map[int64]map[int64]graph.Line{tid: map[int64]graph.Line{lid: l}}
|
g.from[fid] = map[int64]map[int64]graph.Line{tid: {lid: l}}
|
||||||
case g.from[fid][tid] == nil:
|
case g.from[fid][tid] == nil:
|
||||||
g.from[fid][tid] = map[int64]graph.Line{lid: l}
|
g.from[fid][tid] = map[int64]graph.Line{lid: l}
|
||||||
default:
|
default:
|
||||||
@@ -256,7 +256,7 @@ func (g *DirectedGraph) SetLine(l graph.Line) {
|
|||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case g.to[tid] == nil:
|
case g.to[tid] == nil:
|
||||||
g.to[tid] = map[int64]map[int64]graph.Line{fid: map[int64]graph.Line{lid: l}}
|
g.to[tid] = map[int64]map[int64]graph.Line{fid: {lid: l}}
|
||||||
case g.to[tid][fid] == nil:
|
case g.to[tid][fid] == nil:
|
||||||
g.to[tid][fid] = map[int64]graph.Line{lid: l}
|
g.to[tid][fid] = map[int64]graph.Line{lid: l}
|
||||||
default:
|
default:
|
||||||
|
@@ -249,7 +249,7 @@ func (g *UndirectedGraph) SetLine(l graph.Line) {
|
|||||||
|
|
||||||
switch {
|
switch {
|
||||||
case g.lines[fid] == nil:
|
case g.lines[fid] == nil:
|
||||||
g.lines[fid] = map[int64]map[int64]graph.Line{tid: map[int64]graph.Line{lid: l}}
|
g.lines[fid] = map[int64]map[int64]graph.Line{tid: {lid: l}}
|
||||||
case g.lines[fid][tid] == nil:
|
case g.lines[fid][tid] == nil:
|
||||||
g.lines[fid][tid] = map[int64]graph.Line{lid: l}
|
g.lines[fid][tid] = map[int64]graph.Line{lid: l}
|
||||||
default:
|
default:
|
||||||
@@ -257,7 +257,7 @@ func (g *UndirectedGraph) SetLine(l graph.Line) {
|
|||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case g.lines[tid] == nil:
|
case g.lines[tid] == nil:
|
||||||
g.lines[tid] = map[int64]map[int64]graph.Line{fid: map[int64]graph.Line{lid: l}}
|
g.lines[tid] = map[int64]map[int64]graph.Line{fid: {lid: l}}
|
||||||
case g.lines[tid][fid] == nil:
|
case g.lines[tid][fid] == nil:
|
||||||
g.lines[tid][fid] = map[int64]graph.Line{lid: l}
|
g.lines[tid][fid] = map[int64]graph.Line{lid: l}
|
||||||
default:
|
default:
|
||||||
|
@@ -257,7 +257,7 @@ func (g *WeightedDirectedGraph) SetWeightedLine(l graph.WeightedLine) {
|
|||||||
|
|
||||||
switch {
|
switch {
|
||||||
case g.from[fid] == nil:
|
case g.from[fid] == nil:
|
||||||
g.from[fid] = map[int64]map[int64]graph.WeightedLine{tid: map[int64]graph.WeightedLine{lid: l}}
|
g.from[fid] = map[int64]map[int64]graph.WeightedLine{tid: {lid: l}}
|
||||||
case g.from[fid][tid] == nil:
|
case g.from[fid][tid] == nil:
|
||||||
g.from[fid][tid] = map[int64]graph.WeightedLine{lid: l}
|
g.from[fid][tid] = map[int64]graph.WeightedLine{lid: l}
|
||||||
default:
|
default:
|
||||||
@@ -265,7 +265,7 @@ func (g *WeightedDirectedGraph) SetWeightedLine(l graph.WeightedLine) {
|
|||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case g.to[tid] == nil:
|
case g.to[tid] == nil:
|
||||||
g.to[tid] = map[int64]map[int64]graph.WeightedLine{fid: map[int64]graph.WeightedLine{lid: l}}
|
g.to[tid] = map[int64]map[int64]graph.WeightedLine{fid: {lid: l}}
|
||||||
case g.to[tid][fid] == nil:
|
case g.to[tid][fid] == nil:
|
||||||
g.to[tid][fid] = map[int64]graph.WeightedLine{lid: l}
|
g.to[tid][fid] = map[int64]graph.WeightedLine{lid: l}
|
||||||
default:
|
default:
|
||||||
|
@@ -259,7 +259,7 @@ func (g *WeightedUndirectedGraph) SetWeightedLine(l graph.WeightedLine) {
|
|||||||
|
|
||||||
switch {
|
switch {
|
||||||
case g.lines[fid] == nil:
|
case g.lines[fid] == nil:
|
||||||
g.lines[fid] = map[int64]map[int64]graph.WeightedLine{tid: map[int64]graph.WeightedLine{lid: l}}
|
g.lines[fid] = map[int64]map[int64]graph.WeightedLine{tid: {lid: l}}
|
||||||
case g.lines[fid][tid] == nil:
|
case g.lines[fid][tid] == nil:
|
||||||
g.lines[fid][tid] = map[int64]graph.WeightedLine{lid: l}
|
g.lines[fid][tid] = map[int64]graph.WeightedLine{lid: l}
|
||||||
default:
|
default:
|
||||||
@@ -267,7 +267,7 @@ func (g *WeightedUndirectedGraph) SetWeightedLine(l graph.WeightedLine) {
|
|||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case g.lines[tid] == nil:
|
case g.lines[tid] == nil:
|
||||||
g.lines[tid] = map[int64]map[int64]graph.WeightedLine{fid: map[int64]graph.WeightedLine{lid: l}}
|
g.lines[tid] = map[int64]map[int64]graph.WeightedLine{fid: {lid: l}}
|
||||||
case g.lines[tid][fid] == nil:
|
case g.lines[tid][fid] == nil:
|
||||||
g.lines[tid][fid] = map[int64]graph.WeightedLine{lid: l}
|
g.lines[tid][fid] = map[int64]graph.WeightedLine{lid: l}
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user