String returns the source in dot notation.
()
| 274 | |
| 275 | // String returns the source in dot notation. |
| 276 | func (g *Graph) String() string { |
| 277 | b := new(bytes.Buffer) |
| 278 | g.Write(b) |
| 279 | return b.String() |
| 280 | } |
| 281 | |
| 282 | func (g *Graph) Write(w io.Writer) { |
| 283 | g.IndentedWrite(NewIndentWriter(w)) |