scripts/aiv_ui.js
/**
     * @function coseCompoundLayoutEventListener - change to cose compound layout, after doing some checks
     * @param {object} AIVObj - reference to global namespace AIV object, with access to cytoscape methods
     */
@function coseCompoundLayoutEventListener - change to cose compound layout, after doing some checks
@param {object} AIVObj - reference to global namespace AIV object, with access to cytoscape methods
@function coseCompoundLayoutEventListener - change to cose compound layout after doing some checks @param { object } AIVObj - reference to global namespace AIV object with access to cytoscape methods
function coseCompoundLayoutEventListener(AIVObj) {
        document.getElementById('coseCompoundLayout').addEventListener('click', function(event){
            changeLayoutCyHouseCleaning(AIVObj, true);
            if (!AIVObj.coseParentNodesOnCyCore) { 
                AIVObj.addLocalizationCompoundNodes();
                AIVObj.removeAndAddNodesForCompoundNodes();
            }
            AIVObj.cy.layout(AIVObj.getCyCOSEBilkentLayout()).run();
        });
    }
function coseCompoundLayoutEventListener ( AIVObj ) { document . getElementById ( 'coseCompoundLayout' ) . addEventListener ( 'click' , function ( event ) { changeLayoutCyHouseCleaning ( AIVObj , true ) ; if ( ! AIVObj . coseParentNodesOnCyCore ) { AIVObj . addLocalizationCompoundNodes ( ) ; AIVObj . removeAndAddNodesForCompoundNodes ( ) ; } AIVObj . cy . layout ( AIVObj . getCyCOSEBilkentLayout ( ) ) . run ( ) ; } ) ; }
@function coseCompoundLayoutEventListener - change to cose compound layout, after doing some checks
 @param {object} AIVObj - reference to global namespace AIV object, with access to cytoscape methods
@function coseCompoundLayoutEventListener - change to cose compound layout after doing some checks @param { object } AIVObj - reference to global namespace AIV object with access to cytoscape methods
//only run if parent nodes are not already added //took out AIVObj.SUBA4LoadState && check