start generates a title and initial node in DOT format.
()
| 106 | |
| 107 | // start generates a title and initial node in DOT format. |
| 108 | func (b *builder) start() { |
| 109 | graphname := "unnamed" |
| 110 | if b.config.Title != "" { |
| 111 | graphname = b.config.Title |
| 112 | } |
| 113 | fmt.Fprintln(b, `digraph "`+graphname+`" {`) |
| 114 | fmt.Fprintln(b, `node [style=filled fillcolor="#f8f8f8"]`) |
| 115 | } |
| 116 | |
| 117 | // finish closes the opening curly bracket in the constructed DOT buffer. |
| 118 | func (b *builder) finish() { |