<commit_before># Vagabond
A Javascript Graph Database backed by LevelUp and written in ES6.

# Example

````javascript
'use strict';

import Graph from 'vagabond-db';

let graph = new Graph({
  db: LevelUp() // Optional. Defaults to a new Memdown-backed instance.
});

graph.init()
  .then(graph => {
    return graph.addNode('1234', 'label');
  })
  .then(node => {
    return node.setProperty('key', 'value');
  })
  .catch(error => {
    console.error(error);
  });

````

# Installation

* npm - `npm install vagabond-db`

# Testing/Coverage

````bash
npm test # runs all the tests using mocha

npm run coverage # istanbul code coverage output to ./coverage
````

# Documentation<commit_msg>updated usage<commit_after># Vagabond
A Javascript Graph Database backed by LevelUp and written in ES6.

# Example

````javascript
'use strict';

import Graph from 'vagabond-db';

let graph = new Graph({
  db: LevelDown, // Defaults to Memdown
  name: 'my-graph' // Defaults to a new UUIDv4
});

graph.init()
  .then(graph => {
    return graph.addNode('1234', 'label');
  })
  .then(node => {
    return node.setProperty('key', 'value');
  })
  .catch(error => {
    console.error(error);
  });

````

# Installation

* npm - `npm install vagabond-db`

# Testing/Coverage

````bash
npm test # runs all the tests using mocha

npm run coverage # istanbul code coverage output to ./coverage
````

# Documentation
{'fraction_non_alphanumeric': 0.1480427046263345, 'fraction_numerical': 0.007829181494661922, 'mean_word_length': 3.625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '2576423', 'n_tokens_mistral': 496, 'n_tokens_neox': 462, 'n_words': 143}