iVis-at-Bilkent/cytoscape.js-graphml

Name: cytoscape.js-graphml

Owner: iVis-at-Bilkent

Description: A Cytoscape.js extension to import from and export to GraphML format

Created: 2016-06-23 10:38:26.0

Updated: 2017-11-10 16:01:56.0

Pushed: 2017-06-27 18:01:27.0

Homepage:

Size: 33

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

cytoscape-graphml

Description

A Cytoscape.js extension to import from a graph in GraphML format or to export the current Cytsocape.js graph to GraphML format, distributed under The MIT License.

API

cy.graphml() Export the graph as GraphML.

cy.graphml( cyGraphML ) Import the graph as GraphML.

cy.graphml( optionsObj ) Updates the specified options of extension.

optionsObj

  node: {
    css: false,
    data: true,
    position: true,
    discludeds: []
  },
  edge: {
    css: false,
    data: true,
    discludeds: []
  },
  layoutBy: "cose" // string of layout name or layout function

Dependencies
Usage instructions

Download the library:

require() the library as appropriate for your project:

CommonJS:

cytoscape = require('cytoscape');
jquery = require('jquery');
graphml = require('cytoscape-graphml');

hml( cytoscape, jquery ); // register extension

AMD:

ire(['cytoscape', 'cytoscape-graphml'], function( cytoscape, graphml ){
aphml( cytoscape ); // register extension

Plain HTML/JS has the extension registered for you automatically, because no require() is needed.

Publishing instructions

This project is set up to automatically be published to npm and bower. To publish:

  1. Set the version number environment variable: export VERSION=1.2.3
  2. Publish: gulp publish
  3. If publishing to bower for the first time, you'll need to run bower register cytoscape-graphml https://github.com/iVis-at-Bilkent/cytoscape.js-graphml.git
Team

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.