 
         delete @processes[node.id]
 
+    # Get process by its ID.
     getNode: (id) ->
         @processes[id]
 

# The main NoFlo runner

internalSocket = require "./InternalSocket"
component = require "./Component"
port = require "./Port"
arrayport = require "./ArrayPort"
graph = require "./Graph"

class NoFlo
    processes: {}
    connections: []

    removeEdge: (edge) ->
        for connection,index in @connections
            if edge.to.node is connection.to.process.id and edge.to.port is connection.to.port
                connection.to.process.component.inPorts[connection.to.port]?.detach connection
                @connections.splice index, 1
            if edge.from.node
                if connection.from and edge.from.node is connection.from.process.id and edge.from.port is connection.from.port
