Skip to content

Commit

Permalink
Prep v2.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
cpettitt committed Dec 26, 2017
1 parent f508b7c commit fce4c64
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "graphlib",
"version": "2.1.2",
"name": "@dagrejs/graphlib",
"version": "2.1.3",
"main": [
"dist/graphlib.core.js"
"dist/@dagrejs/graphlib.core.js"
],
"ignore": [
".*",
"README.md",
"CHANGELOG.md",
"Makefile",
"browser.js",
"dist/graphlib.js",
"dist/graphlib.min.js",
"dist/@dagrejs/graphlib.js",
"dist/@dagrejs/graphlib.min.js",
"index.js",
"karma*",
"lib/**",
Expand Down
2 changes: 1 addition & 1 deletion dist/graphlib.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ if (!lodash) {
module.exports = lodash;

},{"lodash":undefined}],20:[function(require,module,exports){
module.exports = '2.1.2';
module.exports = '2.1.3';

},{}]},{},[1])(1)
});
2 changes: 1 addition & 1 deletion dist/graphlib.core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/graphlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ if (!lodash) {
module.exports = lodash;

},{"lodash":21}],20:[function(require,module,exports){
module.exports = '2.1.2';
module.exports = '2.1.3';

},{}],21:[function(require,module,exports){
(function (global){
Expand Down
2 changes: 1 addition & 1 deletion dist/graphlib.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ this.setNode(v);this.setNode(w);this._edgeLabels[e]=valueSpecified?value:this._d
v=edgeObj.v;w=edgeObj.w;Object.freeze(edgeObj);this._edgeObjs[e]=edgeObj;incrementOrInitEntry(this._preds[w],v);incrementOrInitEntry(this._sucs[v],w);this._in[w][e]=edgeObj;this._out[v][e]=edgeObj;this._edgeCount++;return this};Graph.prototype.edge=function(v,w,name){var e=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,v,w,name);return this._edgeLabels[e]};Graph.prototype.hasEdge=function(v,w,name){var e=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,v,w,name);return _.has(this._edgeLabels,e)};Graph.prototype.removeEdge=function(v,w,name){var e=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,v,w,name),edge=this._edgeObjs[e];if(edge){v=edge.v;w=edge.w;delete this._edgeLabels[e];delete this._edgeObjs[e];decrementOrRemoveEntry(this._preds[w],v);decrementOrRemoveEntry(this._sucs[v],w);delete this._in[w][e];delete this._out[v][e];this._edgeCount--}return this};Graph.prototype.inEdges=function(v,u){var inV=this._in[v];if(inV){var edges=_.values(inV);if(!u){return edges}return _.filter(edges,function(edge){return edge.v===u})}};Graph.prototype.outEdges=function(v,w){var outV=this._out[v];if(outV){var edges=_.values(outV);if(!w){return edges}return _.filter(edges,function(edge){return edge.w===w})}};Graph.prototype.nodeEdges=function(v,w){var inEdges=this.inEdges(v,w);if(inEdges){return inEdges.concat(this.outEdges(v,w))}};function incrementOrInitEntry(map,k){if(map[k]){map[k]++}else{map[k]=1}}function decrementOrRemoveEntry(map,k){if(!--map[k]){delete map[k]}}function edgeArgsToId(isDirected,v_,w_,name){var v=""+v_;var w=""+w_;if(!isDirected&&v>w){var tmp=v;v=w;w=tmp}return v+EDGE_KEY_DELIM+w+EDGE_KEY_DELIM+(_.isUndefined(name)?DEFAULT_EDGE_NAME:name)}function edgeArgsToObj(isDirected,v_,w_,name){var v=""+v_;var w=""+w_;if(!isDirected&&v>w){var tmp=v;v=w;w=tmp}var edgeObj={v:v,w:w};if(name){edgeObj.name=name}return edgeObj}function edgeObjToId(isDirected,edgeObj){return edgeArgsToId(isDirected,edgeObj.v,edgeObj.w,edgeObj.name)}},{"./lodash":19}],17:[function(require,module,exports){
// Includes only the "core" of graphlib
module.exports={Graph:require("./graph"),version:require("./version")}},{"./graph":16,"./version":20}],18:[function(require,module,exports){var _=require("./lodash"),Graph=require("./graph");module.exports={write:write,read:read};function write(g){var json={options:{directed:g.isDirected(),multigraph:g.isMultigraph(),compound:g.isCompound()},nodes:writeNodes(g),edges:writeEdges(g)};if(!_.isUndefined(g.graph())){json.value=_.clone(g.graph())}return json}function writeNodes(g){return _.map(g.nodes(),function(v){var nodeValue=g.node(v),parent=g.parent(v),node={v:v};if(!_.isUndefined(nodeValue)){node.value=nodeValue}if(!_.isUndefined(parent)){node.parent=parent}return node})}function writeEdges(g){return _.map(g.edges(),function(e){var edgeValue=g.edge(e),edge={v:e.v,w:e.w};if(!_.isUndefined(e.name)){edge.name=e.name}if(!_.isUndefined(edgeValue)){edge.value=edgeValue}return edge})}function read(json){var g=new Graph(json.options).setGraph(json.value);_.each(json.nodes,function(entry){g.setNode(entry.v,entry.value);if(entry.parent){g.setParent(entry.v,entry.parent)}});_.each(json.edges,function(entry){g.setEdge({v:entry.v,w:entry.w,name:entry.name},entry.value)});return g}},{"./graph":16,"./lodash":19}],19:[function(require,module,exports){/* global window */
var lodash;if(typeof require==="function"){try{lodash=require("lodash")}catch(e){}}if(!lodash){lodash=window._}module.exports=lodash},{lodash:21}],20:[function(require,module,exports){module.exports="2.1.2"},{}],21:[function(require,module,exports){(function(global){(function(){/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var lodash;if(typeof require==="function"){try{lodash=require("lodash")}catch(e){}}if(!lodash){lodash=window._}module.exports=lodash},{lodash:21}],20:[function(require,module,exports){module.exports="2.1.3"},{}],21:[function(require,module,exports){(function(global){(function(){/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;/** Used as the semantic version number. */
var VERSION="4.17.4";/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE=200;/** Error message constants. */
Expand Down
2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = '2.1.2';
module.exports = '2.1.3';
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dagrejs/graphlib",
"version": "2.1.3-pre",
"version": "2.1.3",
"description": "A directed and undirected multi-graph library",
"author": "Chris Pettitt <cpettitt@gmail.com>",
"main": "index.js",
Expand Down

0 comments on commit fce4c64

Please sign in to comment.