   runtime: {}
   microflo: {}
 
-# TODO: support graph.removenode
 commands.graph.addnode = (payload, buffer, index, componentLib) ->
   nodeName = payload.id
   componentName = payload.component

  # Add normal component
  parentId = undefined # subgraph not supported yet
  index += writeCmd(buffer, index, cmdFormat.commands.CreateComponent.id, comp.id, parentId or 0)
  return index

commands.graph.addedge = (payload, buffer, index, componentLib, nodeMap, componentMap) ->

    payload:
      id: nodeName
      component: component
  return m
responses.NodeRemoved = (componentLib, graph, cmdData) ->
  nodeName = nodeNameById(graph.nodeMap, cmdData.readUInt8(1))
  m =
    protocol: 'graph'
    command: 'removenode'
    payload:
      id: nodeName
  return m

responses.NodesConnected = (componentLib, graph, cmdData) ->
  # TODO: implement
