code: function(node, id) {
      if(node.id == id) return true;
      var pars = this.getParents(node), ans = false;
      for ( var i = 0; !ans && i < pars.length; i++) {
      ans = ans || this.isDescendantOf(pars[i], id);
    }
      return ans;
   }
docs: /*
  Method: isDescendantOf
  
  Returns a boolean indicating if some node is descendant of the node with the given id.
  
  Also implemented by:
  
  <Graph.Node>.
  
  
  Parameters:
  node - (object) A <Graph.Node>.
  id - (string) A <Graph.Node> id.
  
  Example:
  (start code js)
  $jit.Graph.Util.isDescendantOf(node, "nodeid"); //true|false
  or...
  node.isDescendantOf('nodeid');//true|false
  (end code)