         node: priv.process
         port: priv.port
         graph: graphId
+      pendingPorts.in.push pub
   if graph.outports
     for pub, priv of graph.outports
       runtime.sendGraph 'addoutport',

        node: priv.process
        port: priv.port
        graph: graphId

  # FIXME: wait for responses. Maybe until "ports" message matches our setup?
  return callback null, graphId

exports.startNetwork = (runtime, graphId, callback) ->
  debug 'startnetwork', graphId


  graphId = graph.name or graph.properties.id
  graphId = "fixture.#{common.randomString(10)}" if not graphId

  pendingPorts =
    in: []
    out: []

  runtime.sendGraph 'clear',
    id: graphId
