programming-examples/js/Algorithms/vertex.js

17 lines
304 B
JavaScript
Raw Normal View History

2019-11-15 12:59:38 +01:00
(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);