graphology-gexf
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -243,3 +243,3 @@ /* eslint no-self-compare: 0 */ | ||
if (!isGraphConstructor(Graph)) | ||
throw new Error('graphology-gexf/browser/parser: invalid Graph constructor.'); | ||
throw new Error('graphology-gexf/parser: invalid Graph constructor.'); | ||
@@ -251,3 +251,3 @@ // If source is a string, we are going to parse it | ||
if (!(xmlDoc instanceof Document)) | ||
throw new Error('graphology-gexf/browser/parser: source should either be a XML document or a string.'); | ||
throw new Error('graphology-gexf/parser: source should either be a XML document or a string.'); | ||
@@ -254,0 +254,0 @@ // Finding useful elements |
@@ -225,3 +225,3 @@ /* eslint no-self-compare: 0 */ | ||
data.target = graph.target(edge); | ||
data.undirected = graph.undirected(edge); | ||
data.undirected = graph.isUndirected(edge); | ||
edges[i] = data; | ||
@@ -228,0 +228,0 @@ } |
{ | ||
"name": "graphology-gexf", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "GEXF parser & writer for graphology.", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/graphology/graphology-utils.git" | ||
"url": "git+https://github.com/graphology/graphology-gexf.git" | ||
}, | ||
@@ -34,10 +34,10 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/graphology/graphology-utils/issues" | ||
"url": "https://github.com/graphology/graphology-gexf/issues" | ||
}, | ||
"homepage": "https://github.com/graphology/graphology-utils#readme", | ||
"homepage": "https://github.com/graphology/graphology-gexf#readme", | ||
"devDependencies": { | ||
"@yomguithereal/eslint-config": "^4.0.0", | ||
"eslint": "^6.8.0", | ||
"graphology": "^0.15.1", | ||
"mocha": "^7.0.1" | ||
"eslint": "^7.12.1", | ||
"graphology": "^0.18.0", | ||
"mocha": "^8.2.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "eslintConfig": { |
@@ -17,6 +17,6 @@ [![Build Status](https://travis-ci.org/graphology/graphology-gexf.svg)](https://travis-ci.org/graphology/graphology-gexf) | ||
* [Browser parser](#browser-parser) | ||
* [Browser writer](#browser-writer) | ||
* [Parser](#parser) | ||
* [Writer](#writer) | ||
### Browser parser | ||
### Parser | ||
@@ -27,2 +27,6 @@ The parser must be passed a `graphology` constructor and is able to read either a string, or an `XMLDocument` instance. | ||
var Graph = require('graphology'); | ||
// Node | ||
var gexf = require('graphology-gexf'); | ||
// Browser | ||
var gexf = require('graphology-gexf/browser'); | ||
@@ -42,3 +46,3 @@ | ||
### Browser writer | ||
### Writer | ||
@@ -48,2 +52,5 @@ The writer must be passed a `graphology` instance and will output a GEXF string. | ||
```js | ||
// Node | ||
var gexf = require('graphology-gexf'); | ||
// Browser | ||
var gexf = require('graphology-gexf/browser'); | ||
@@ -50,0 +57,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
28021
102