The plugins will be better documented with the next release when the documentation is improved and when the plugins are separated on the jQuery plugin system (they are jQuery plugins after all).
For now, here is an example for you:
$('#graph').cxtmenu({
selector: 'node',
commands: [
{
content: '<span class="icon-arrow-right"></span><label>Connect</label>',
select: function(){
$('#graph').cytoscapeEdgehandles('start', this.id());
}
},
{
content: '<span class="icon-remove destructive-light"></span><label class="">Delete</label>',
select: function(){
doc.removeEntity( this.id() );
}
}
]
});