programming-examples/js/Algorithms/vertex.js
2019-11-15 12:59:38 +01:00

17 lines
304 B
JavaScript

(function (exports) {
'use strict';
/**
* Graph vertex.
*
* @constructor
* @public
* @param {Number} id Id of the vertex.
* @module data-structures/vertex
*/
exports.Vertex = function (id) {
this.id = id;
};
})(typeof window === 'undefined' ? module.exports : window);