@buggyorg/graphtools
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -306,2 +306,3 @@ 'use strict'; | ||
} | ||
var origSubset = _lodash2.default.clone(subset); | ||
if (_api.utils.isNG(g)) { | ||
@@ -311,3 +312,3 @@ subset = completeSubset(g, subset); | ||
if (!isCompoundable(g, subset)) { | ||
throw new Error('This subset cannot be compoundified given this particular subset.'); | ||
throw new Error('This subset cannot be compoundified given this particular subset.' + JSON.stringify(origSubset)); | ||
} | ||
@@ -314,0 +315,0 @@ var graph = _api.graph.clone(g); |
{ | ||
"name": "@buggyorg/graphtools", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Tools for processing buggy graphs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/api.js", |
@@ -112,4 +112,7 @@ import graphlib from 'graphlib' | ||
if (subset.length < 1) { return g } | ||
var origSubset = _.clone(subset) | ||
if (utils.isNG(g)) { subset = completeSubset(g, subset) } | ||
if (!isCompoundable(g, subset)) { throw new Error('This subset cannot be compoundified given this particular subset.') } | ||
if (!isCompoundable(g, subset)) { | ||
throw new Error('This subset cannot be compoundified given this particular subset.' + JSON.stringify(origSubset)) | ||
} | ||
var graph = graphAPI.clone(g) | ||
@@ -116,0 +119,0 @@ if (!name) { |
1487919
12753