export var getDegree = function getDegree(node, edges) {
  var nodeId = node.data.id;
  var index = 0;
  edges.forEach(function (edge) {
    if (edge.data.source === nodeId || edge.data.target === nodeId) {
      index = index + 1;
    }
  });
  return index;
};