code: function adjacencyListToCells(adjacencyList) {
  
          var elements = [];
          var links = [];
  
          _.each(adjacencyList, function(edges, parentElementLabel) {
              elements.push(makeElement(parentElementLabel));
  
              _.each(edges, function(childElementLabel) {
                  links.push(makeLink(parentElementLabel, childElementLabel));
              });
          });
  
          // Links must be added after all the elements. This is because when the links
          // are added to the graph, link source/target
          // elements must be in the graph already.
          var cells = elements.concat(links);
  
          return cells;
      }
docs: Helpers. --------