plugins/incub/visualizer/old/src/js/demo_vivagraph.js
function addLinkToParent(idNode, idParentNode){
    g.addLink(idParentNode, idNode, nodesToBeLinked[idNode].name);
    delete nodesToBeLinked[idNode];

    //we remove the node from childrenNodes
    var index = childrenNodes.indexOf(idNode);
    if (index > -1) {
        childrenNodes.splice(index, 1);
    }
}
function addLinkToParent(idNode, idParentNode){
    g.addLink(idParentNode, idNode, nodesToBeLinked[idNode].name);
    delete nodesToBeLinked[idNode];

    //we remove the node from childrenNodes
    var index = childrenNodes.indexOf(idNode);
    if (index > -1) {
        childrenNodes.splice(index, 1);
    }
}
function addLinkToParent ( idNode , idParentNode ) { g . addLink ( idParentNode , idNode , nodesToBeLinked [ idNode ] . name ) ; delete nodesToBeLinked [ idNode ] ; //we remove the node from childrenNodes var index = childrenNodes . indexOf ( idNode ) ; if ( index > - 1 ) { childrenNodes . splice ( index , 1 ) ; } }
Add a link to the graph between the node and its parent
@param idNode
@param idParentNode
Add a link to the graph between the node and its parent