code: function generateDOMLabel(node) {
      var label = document.createElement('span');
      label.className = 'nodeLabel';
      label.id = node._id;
      if (node.name){
          label.innerText = node.name;
      } else {
          label.innerText = node._id;
      }
      divGraph.appendChild(label);
      return label;
  
  }
docs: Create a span element containing the name of the parameter node
  @param node
  @returns {Element}