title: Adding context menu or dropdown menu in Sigma JS graph
body: <p>What's the best or preferred way to add a dropdown or context menu in a Sigma JS graph that appears at the mouse-click position, over the graph itself? I've seen libraries like <a href="http://ignitersworld.com/lab/contextMenu.html" rel="nofollow noreferrer">contextmenu.js</a>, but can it be done in a simpler or better way? My goal is to be able to click a node and then click a menu option, passing data from the node to functions called through click events on the menu.</p>
  
  <p>Update: I've tried using <a href="https://swisnl.github.io/jQuery-contextMenu/" rel="nofollow noreferrer">this jQuery context menu library</a>, with the selector set to the ID of my Sigma container div. I can get a sample context menu to appear, but only if I click on the border of the div - clicking inside the graph doesn't display the context menu (double-clicking zooms the graph in, as before).</p>