graphology-gremlin
v1.0.0-alpha3
Published
Gremlin plugin for graphology
Downloads
10
Readme
Gremlin DSL for graphology
This project allows you to do Gremlin queries on top of a graphology instance. For now the project is in alpha, but it already supports a good part of all the basis of Gremlin.
Please open a ticket on github if something is missing or not working, it will help me a lot ! Thanks.
How to use it
- Install the library
$> npm install graphology-gremlin
- Import it in your script
import { GraphTraversalSource } from "graphology-gremlin";
- Create a
GraphTraversalSource
with your graph (a graphology instance)
const g = new GraphTraversalSource(graph);
- Make your Gremlin query with the created
GraphTraversalSource
const result = g.V().out("KNOWS").toList();