plugin/plugin copy.js
// Updates value of node and reflects the change in the visualization
Updates value of node and reflects the change in the visualization
Updates value of node and reflects the change in the visualization
function updateHeuristicNode(d) {
        var result = updateValue(graph, d.id, true);
        if(result[1]) {
            window.toastr.success("Value updated!");
            data.nodes[d.index].value = graph.get(d.id).value;
            updateLabels();
        } else {
            window.toastr.info("No update occured!");
        }
    }
function updateHeuristicNode ( d ) { var result = updateValue ( graph , d . id , true ) ; if ( result [ 1 ] ) { window . toastr . success ( "Value updated!" ) ; data . nodes [ d . index ] . value = graph . get ( d . id ) . value ; updateLabels ( ) ; } else { window . toastr . info ( "No update occured!" ) ; } }
Updates value of node and reflects the change in the visualization
Updates value of node and reflects the change in the visualization
// Update clicked node // If an update occured // Update data variable to reflect the update // Redraw labels