Context menus for selected nodes and edges