Documentation ¶
Overview ¶
Package dot creates a graphviz compatible version of the ExprGraph
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal the graph in a dot (graphviz) This methods also generates the subgraphs
Example ¶
g := gorgonia.NewGraph() var x, y *gorgonia.Node var err error // define the expression x = gorgonia.NewScalar(g, gorgonia.Float64, gorgonia.WithName("x")) y = gorgonia.NewScalar(g, gorgonia.Float64, gorgonia.WithName("y")) if _, err = gorgonia.Add(x, y); err != nil { log.Fatal(err) } if b, err := Marshal(g); err == nil { fmt.Println(string(b)) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.