github.com/opentofu/opentofu@v1.7.1/internal/tofu/graph_dot.go (about) 1 // Copyright (c) The OpenTofu Authors 2 // SPDX-License-Identifier: MPL-2.0 3 // Copyright (c) 2023 HashiCorp, Inc. 4 // SPDX-License-Identifier: MPL-2.0 5 6 package tofu 7 8 import "github.com/opentofu/opentofu/internal/dag" 9 10 // GraphDot returns the dot formatting of a visual representation of 11 // the given OpenTofu graph. 12 func GraphDot(g *Graph, opts *dag.DotOpts) (string, error) { 13 return string(g.Dot(opts)), nil 14 }