gremlin-script
Version:
Generate Gremlin scripts with ease
25 lines (17 loc) • 413 B
JavaScript
;
var inherits = require('util').inherits;
var GraphElement = require("./element");
function Vertex() {
GraphElement.apply(this, arguments);
this.properties._type = "vertex";
}
inherits(Vertex, GraphElement);
Vertex.toGroovy = function() {
return 'Vertex.class';
};
Object.defineProperty(Vertex, 'class', {
get: function() {
return this.toGroovy();
}
});
module.exports = Vertex;