Logf logs a printed representation of the graph with the logf of your choice. This is helpful to ensure each line of logged output has the prefix you want.
(logf func(format string, v ...interface{}))
| 533 | // Logf logs a printed representation of the graph with the logf of your choice. |
| 534 | // This is helpful to ensure each line of logged output has the prefix you want. |
| 535 | func (obj *Graph) Logf(logf func(format string, v ...interface{})) { |
| 536 | for _, x := range strings.Split(obj.Sprint(), "\n") { |
| 537 | logf("%s", x) |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | // IncomingGraphVertices returns an array (slice) of all directed vertices to |
| 542 | // vertex v (??? -> v). OKTimestamp should probably use this. |