addStyleToEdge = (edge, type) => {

  edge = Object.assign(edge, type.style);

  if (utils.isTrue(type['show-label'], true)) {
    edge.label = type.getLabel();
  }

}
Sets up an edge object that is ready to be consumed by vis.

@param {Edge} edge
@param {EdgeType} type