constructor(source, dest, weight) {
    this.source = source;
    this.dest = dest;
    this.weight = weight;
  }
Class structure for each link between two nodes.

@param {Node} source Source node.
@param {Node} dest Target node.
@param {number} weight Weight associated to this link. It can be a number,
 1D array, or 2D array.