code: function dig_dot_layout_orderMap(g, layer) {
    var order = {};
    for (var i = 0; i < layer.length; ++i) {
      order[layer[i]] = i;
    }
    return order;
  }
docs: /*
  Helper function that creates a map that contains the order of nodes in a
  particular layer.