Skip to content

Commit

Permalink
Prep for v2.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
cpettitt committed Dec 26, 2017
1 parent 358085f commit ea07400
Show file tree
Hide file tree
Showing 7 changed files with 12,665 additions and 1,463 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphlib",
"version": "2.1.1",
"version": "2.1.2",
"main": [
"dist/graphlib.core.js"
],
Expand Down
12 changes: 11 additions & 1 deletion dist/graphlib.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,16 @@ Graph.prototype.neighbors = function(v) {
}
};

Graph.prototype.isLeaf = function (v) {
var neighbors;
if (this.isDirected()) {
neighbors = this.successors(v);
} else {
neighbors = this.neighbors(v);
}
return neighbors.length === 0;
};

Graph.prototype.filterNodes = function(filter) {
var copy = new this.constructor({
directed: this._isDirected,
Expand Down Expand Up @@ -1200,7 +1210,7 @@ if (!lodash) {
module.exports = lodash;

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

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

Large diffs are not rendered by default.

Loading

0 comments on commit ea07400

Please sign in to comment.