<commit_before># Graph Dracula - a JavaScript Graph Library

[![Build Status](https://travis-ci.org/strathausen/dracula.svg?branch=master)](https://travis-ci.org/strathausen/dracula)

Graph Dracula is a set of tools to display and layout interactive graphs,
along with various related algorithms.

Based on JavaScript and SVG.

The code is released under the MIT license, so commercial use is not a problem.

Creating a graph is simple! You can also customise anything easily.

First, install the dependencies:

    npm install --save graphdracula raphael

Second, create an html file with a tag having the ID `paper`.

Third, require graphdracula (via browserify or webpack):

```js
var Dracula = require('graphdracula');

var Graph = Dracula.Graph;
var Renderer = Dracula.Renderer.Raphael;
var Layout = Dracula.Layout.Spring;

var graph = new Graph();<commit_msg>adds jspm example<commit_after># Graph Dracula - a JavaScript Graph Library

[![Build Status](https://travis-ci.org/strathausen/dracula.svg?branch=master)](https://travis-ci.org/strathausen/dracula)

Graph Dracula is a set of tools to display and layout interactive graphs,
along with various related algorithms.

Based on JavaScript and SVG.

The code is released under the MIT license, so commercial use is not a problem.

Creating a graph is simple! You can also customise anything easily.

First, install the dependencies:

    npm install --save graphdracula raphael
    jspm install npm:graphdracula

Second, create an html file with a tag having the ID `paper`.

Third, require graphdracula (via browserify or webpack):

```js
var Dracula = require('graphdracula');

var Graph = Dracula.Graph;
var Renderer = Dracula.Renderer.Raphael;
var Layout = Dracula.Layout.Spring;

var graph = new Graph();
{'fraction_non_alphanumeric': 0.08427601809954752, 'fraction_numerical': 0.0, 'mean_word_length': 4.7064516129032254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3882728', 'n_tokens_mistral': 541, 'n_tokens_neox': 528, 'n_words': 210}