17 lines
304 B
JavaScript
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);
|