code: function removeEdges(elements) {
  
    var filteredElements = filter(elements, function(element) {
  
      if (!isConnection(element)) {
        return true;
      } else {
  
        return (
          find(elements, matchPattern({ id: element.source.id })) &&
          find(elements, matchPattern({ id: element.target.id }))
        );
      }
    });
  
    return filteredElements;
  }
docs: helpers ////////////////////// 
  returns elements minus all connections
  where source or target is not elements