   # 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.removenode = (payload, buffer, index, componentLib, nodeMap) ->
+  nodeName = payload.id
+  nodeId = nodeMap[nodeName].id
+
+  # Add normal component
+  index += writeCmd(buffer, index, cmdFormat.commands.RemoveNode.id, nodeId)
   return index
 
 commands.graph.addedge = (payload, buffer, index, componentLib, nodeMap, componentMap) ->

    payload:
      id: nodeName
      component: component

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

  runtime: {}
  microflo: {}

commands.graph.addnode = (payload, buffer, index, componentLib) ->
  nodeName = payload.id
  componentName = payload.component
