The following list contains events that you can react on:

graph.on('add', function(cell) { 
    alert('New cell with id ' + cell.id + ' added to the graph.') 
})