code: function d3_layout_hierarchyRebind(object, hierarchy) {
    d3.rebind(object, hierarchy, "sort", "children", "value");
  
    // Add an alias for links, for convenience.
    object.links = d3_layout_hierarchyLinks;
  
    // If the new API is used, enabling inlining.
    object.nodes = function(d) {
      d3_layout_hierarchyInline = true;
      return (object.nodes = object)(d);
    };
  
    return object;
  }
docs: A method assignment helper for hierarchy subclasses.