       .append('g')
         .attr('transform', "translate(#{width/2}, #{height/2})")
 
-    layout(svg, {name: "_root", children: tree})
+    drawChildren(svg, tree)
 
 
 demo([

layout = (g, state) ->
    childNodes = []
    childLinks = []
    stateMap = {}

    for child in state.children or []
        child._idx = childNodes.length
        stateMap[child.name] = child
        childNodes.push({name: child.name})

    for child in state.children or []
        for tr in child.transitions or []
            target = stateMap[tr.target]
            childLinks.push({source: child._idx, target: target._idx})

      .enter().append('g')
        .attr('class', 'cell')

    size = 0
    for child in children
        size += drawState(cell, child) * 3

    r = Math.sqrt(size)

