Skip to content

dmill-bz/gc-cytoscape-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HIGHLY EXPERIMENTAL This plugin provides very basic visualization features for gremlin-console-js

npm GitHub license

Preview

Screen Shot

Install

npm install gc-cytoscape-plugin

Getting started

Using ES2015/2016
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
In browser
<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

Keep in mind

This is a very basic plugin. It only supports the container option and will choke on larger datasets.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published