function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

export var Node = function Node(data) {
  _classCallCheck(this, Node);

  this.id = data.id;
  this.data = data || {};
  this.x = data.x || 0;
  this.y = data.y || 0;
};
export var Edge = function Edge(id, source, target, data) {
  _classCallCheck(this, Edge);

  this.id = id;
  this.source = source;
  this.target = target;
  this.data = data || {};
};