title: Is there a direct way to get a node's neighbors?
body: <p>Is there a direct way to get all network neighbors of a node <code>n0</code> in Cytoscape.js?  </p>
  
  <p>The best solution that has occurred to me so far is to get all edges where <code>n0</code> is the source and all edges where <code>n0</code> is the target -- and then look at those edges' targets and sources, respectively.  </p>
  
  <p>Is there a more convenient way, say something like a function <code>cy.nodes("#n0").neighbors()</code>?</p>
  
  <p>The reason I need this is that I would like to implement a function that removes a node <code>n0</code>, but also other nodes that have no edges after removing <code>n0</code> should be removed.  Ideas on this will be appreciated.</p>
  
  <p>Thanks!</p>