code: function _getLinks(node) {
    var links = [];
  
    node.ifForEach('inEdgeIds', function (inEdge) {
      var edge = _data.edges.get(inEdge);
      edge.setProperties({
        sourceId: edge.get('inputVertexName'),
        targetId: edge.get('outputVertexName')
      });
      links.push(edge);
    });
  
    if(node.type === types.INPUT) {
      links.push(Ember.Object.create({
        sourceId: node.get('id'),
        targetId: node.get('vertex.id')
      }));
    }
    else if(node.type === types.OUTPUT) {
      links.push(Ember.Object.create({
        sourceId: node.get('vertex.id'),
        targetId: node.get('id')
      }));
    }
  
    return links;
  }
docs: Return an array of the incoming edges/links and input-output source-sink edges of the node.
  @param node {DataNode}
  @return links {Array} Array of all incoming and input-output edges of the node