Add dot graph generation from a summing bird graph.#223
Conversation
Use with
import com.twitter.summingbird.viz.BaseViz
val writer = new PrintWriter(new File("/tmp/output.dot"))
BaseViz(node, writer)
writer.close()
|
Nice! Can you paste in some example output for some graph? |
|
graph: Storm.source(Spout.fromTraversable(Seq(1, 2, 3, 4))).name("Source from a sequence") Dot graph produced: graph summingbirdGraph { } |
There was a problem hiding this comment.
not crazy about this. We already have the get method, can you just expose the keys?
def nodes: Set[Producer[P, _]] = graph.keysAdd a nodes function to return the set of keys in the Dependants graph.
… from a local variable to using a dependentState variable with the nodes and getDependantsOf accessors.
|
Updated to reflect @johnynek 's comments |
Add dot graph generation from a summing bird graph.
Separate decayed value monoid

Use with
import com.twitter.summingbird.viz.BaseViz
BaseViz(node, writer)
writer.close()