       graphOps.push
         op: op
         details: details
+      return
     processOps = (err) =>
       if err
         throw err if @listeners('process-error').length is 0

          @renameNode op.details.from, op.details.to, cb
        else
          @[op.op] op.details, cb

    @graph.on 'addNode', (node) ->
      registerOp 'addNode', node
      do processOps unless processing
    @graph.on 'removeNode', (node) ->
      registerOp 'removeNode', node
      do processOps unless processing
    @graph.on 'renameNode', (oldId, newId) ->
      registerOp 'renameNode',
        from: oldId
        to: newId
      do processOps unless processing
    @graph.on 'addEdge', (edge) ->
      registerOp 'addEdge', edge
      do processOps unless processing
    @graph.on 'removeEdge', (edge) ->
      registerOp 'removeEdge', edge
      do processOps unless processing
    @graph.on 'addInitial', (iip) ->
      registerOp 'addInitial', iip
      do processOps unless processing
    @graph.on 'removeInitial', (iip) ->
      registerOp 'removeInitial', iip
      do processOps unless processing

exports.Network = LegacyNetwork


  connect: (done = ->) ->
    super (err) =>
      if err
        done err
        return
      @subscribeGraph()
      done()
      return
    return

  # A NoFlo graph may change after network initialization.
  # For this, the legacy network subscribes to the change events
