plugins/incub/visualizer/old/src/js/demo_vivagraph.js
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;

}
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;

}
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 ; }
Create a span element containing the name of the parameter node
@param node
@returns {Element}
Create a span element containing the name of the parameter node