diff --git a/graph/encoding/dot/decode_test.go b/graph/encoding/dot/decode_test.go index 20fb557e..a1e28c5d 100644 --- a/graph/encoding/dot/decode_test.go +++ b/graph/encoding/dot/decode_test.go @@ -312,12 +312,12 @@ func TestMultigraphDecoding(t *testing.T) { }, { directed: true, - input: directedSelfLoopMultigraph, + input: directedSelfLoopMultigraph, expected: directedSelfLoopMultigraph, }, { directed: false, - input: undirectedSelfLoopMultigraph, + input: undirectedSelfLoopMultigraph, expected: undirectedSelfLoopMultigraph, }, } { diff --git a/graph/encoding/dot/encode.go b/graph/encoding/dot/encode.go index 7a919047..f4381f2d 100644 --- a/graph/encoding/dot/encode.go +++ b/graph/encoding/dot/encode.go @@ -140,7 +140,6 @@ type edge struct { from, to int64 } - func (p *simpleGraphPrinter) print(g graph.Graph, name string, needsIndent, isSubgraph bool) error { if name == "" { if g, ok := g.(Graph); ok {