code: function addDummyNode(g, type, attrs, name) {
    var v;
    do {
      v = _.uniqueId(name);
    } while (g.hasNode(v));
  
    attrs.dummy = type;
    g.setNode(v, attrs);
    return v;
  }
docs: /*
  Adds a dummy node to the graph and return v.