"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Edge = exports.Node = void 0;

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

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;
};

exports.Node = Node;

var Edge = function Edge(id, source, target, data) {
  _classCallCheck(this, Edge);

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

exports.Edge = Edge;