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