code: function graph_pnode(node, node_class, leaf_class, height){
      this.node = node;
      this.height = height;
      this.leaf_class = leaf_class;
      this.connector_shown = false;
  
      var node_elem = document.createElement("div");
      if (node.is_leaf()) {
          node_elem.appendChild(document.createTextNode(node.label));
          node_elem.className = leaf_class;
      } else {
          node_elem.title = node.label;
          node_elem.className = node_class;
      }
  
      node_elem.node_id = node.id;
      this.node_elem = node_elem;
  }
docs: / / phylo node html renderer /