Setup is convenience for parsing the wiring and wiring up the graph
(def string)
| 60 | |
| 61 | // Setup is convenience for parsing the wiring and wiring up the graph |
| 62 | func (g *Graph) Setup(def string) error { |
| 63 | wiring, err := ParseWiring(def) |
| 64 | if err != nil { |
| 65 | return err |
| 66 | } |
| 67 | return g.WireUp(wiring) |
| 68 | } |
| 69 | |
| 70 | func (g *Graph) WireUp(w *Wiring) error { |
| 71 | // we add comm as a node to the graph, this simplifies all the wiring |
no test coverage detected