MotionRuntime.toGraphViz specification
This is the engineering specification for the MotionRuntime
’s toGraphViz
API.
Overview
toGraphViz generates a graphviz representation of a MotionRuntime’s connected streams.
Connected streams in a MotionRuntime can be thought of as a connected graph, meaning they’re naturally representable in graphviz.
MVP
Expose a toGraphViz API
class MotionRuntime {
public func toGraphViz() -> String
}
Return a complete graphviz string
digraph G {
node [shape=rect]
// Each line represents a connection in the runtime's graph
}