HIGHLY EXPERIMENTAL This plugin provides very basic visualization features for gremlin-console-js
npm install gc-cytoscape-plugin
import GremlinConsole from 'gremlin-console';
import GCCytoscapePlugin from 'gc-cytoscape-plugin';
//create a console + input combo by passing css selectors to GremlinConsole
//Load http://localhost:80/my/path
const gc = GremlinConsole('#console-window', '#console-input', {
visualizerOptions: {container: "#visualization-window"}
});
gc.register(GCCytoscapePlugin()); //register the plugin
<head>
<!-- ... -->
<link rel="stylesheet" type="text/css" href="umd/css/default.css">
<script src="path-to-umd/gremlin-console.min.js"></script>
<script src="path-to-umd/gc-cytoscape-plugin.min.js"></script>
</head>
//create a console + input combo by passing css selectors to GremlinConsole
//Load http://localhost:80/my/path
var gc = GremlinConsole.create('#console-window', '#console-input', {
visualizerOptions: {container: "#visualization-window"}
});
gc.register(GCCytoscapePlugin.init()); //register the plugin
This is a very basic plugin. It only supports the container
option and will choke on larger datasets.