New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aureooms-js-adjacency-list

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aureooms-js-adjacency-list - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

2

bower.json

@@ -15,3 +15,3 @@ {

],
"version": "4.0.2",
"version": "4.0.3",
"main": "js/dist/adjacency-list.js",

@@ -18,0 +18,0 @@ "homepage": "http://aureooms.github.io/js-adjacency-list/",

@@ -7,3 +7,3 @@ {

"description": "adjacency list code bricks for JavaScript",
"version": "4.0.2",
"version": "4.0.3",
"main": "js/dist/adjacency-list.js",

@@ -10,0 +10,0 @@ "name": "aureooms-js-adjacency-list",

@@ -1275,3 +1275,3 @@ "use strict";

context$4$0.prev = 3;
_iterator17 = this.iitr(v)[Symbol.iterator]();
_iterator17 = this.initr(v)[Symbol.iterator]();

@@ -1344,3 +1344,3 @@ case 5:

context$4$0.prev = 3;
_iterator18 = this.iitr(v)[Symbol.iterator]();
_iterator18 = this.outitr(v)[Symbol.iterator]();

@@ -1347,0 +1347,0 @@ case 5:

@@ -1,2 +0,2 @@

"use strict";var _slicedToArray=function(){function e(e,r){var t=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(t.push(s.value),!r||t.length!==r);n=!0);}catch(c){a=!0,i=c}finally{try{!n&&o["return"]&&o["return"]()}finally{if(a)throw i}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();!function(){var e=function(e,r){var t=function(e,r,t){this.u=e,this.v=r,this.ref=null,this.twin=null,this.iterator=null,this.list=t};e.DiEdge=t;var n=function(){this.iterator=null};e.DiVertex=n;var a=function(e,r){this.u=e,this.v=r,this.iterator=null,this.uiterator=null,this.viterator=null};e.Edge=a;var i=function(e,a){var i=function(){this.V=new e,this.succ=new a,this.pred=new a};return i.prototype.vadd=function(){var r=new n;return this.succ.set(r,new e),this.pred.set(r,new e),r.iterator=this.V.push(r),r},i.prototype.vdel=function(e){var t=!0,n=!1,a=r;try{for(var i,s=this.initr(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var o=i.value;this.edel(o)}}catch(c){n=!0,a=c}finally{try{!t&&s["return"]&&s["return"]()}finally{if(n)throw a}}var u=!0,p=!1,v=r;try{for(var f,h=this.outitr(e)[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var o=f.value;this.edel(o)}}catch(c){p=!0,v=c}finally{try{!u&&h["return"]&&h["return"]()}finally{if(p)throw v}}this.pred["delete"](e),this.succ["delete"](e),this.V.erase(e.iterator)},i.prototype.eadd=function(e,r){var n=new t(e,r,this.succ.get(e)),a=new t(r,e,this.pred.get(r));return n.iterator=n.list.push(n),a.iterator=a.list.push(a),n.twin=a,a.twin=n,n.ref=n,a.ref=n,n},i.prototype.edel=function(e){e.list.erase(e.iterator),e.twin.list.erase(e.twin.iterator)},i.prototype.vitr=regeneratorRuntime.mark(function s(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.V,"t0",1);case 1:case"end":return e.stop()}},s,this)}),i.prototype.eitr=regeneratorRuntime.mark(function o(){var e,t,n,a,i,s,c,u,p,v,f,h,l,d;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e=!0,t=!1,n=r,o.prev=3,a=this.succ[Symbol.iterator]();case 5:if(e=(i=a.next()).done){o.next=38;break}s=_slicedToArray(i.value,2),c=s[0],u=s[1],p=!0,v=!1,f=r,o.prev=12,h=u[Symbol.iterator]();case 14:if(p=(l=h.next()).done){o.next=21;break}return d=l.value,o.next=18,d.ref;case 18:p=!0,o.next=14;break;case 21:o.next=27;break;case 23:o.prev=23,o.t0=o["catch"](12),v=!0,f=o.t0;case 27:o.prev=27,o.prev=28,!p&&h["return"]&&h["return"]();case 30:if(o.prev=30,!v){o.next=33;break}throw f;case 33:return o.finish(30);case 34:return o.finish(27);case 35:e=!0,o.next=5;break;case 38:o.next=44;break;case 40:o.prev=40,o.t1=o["catch"](3),t=!0,n=o.t1;case 44:o.prev=44,o.prev=45,!e&&a["return"]&&a["return"]();case 47:if(o.prev=47,!t){o.next=50;break}throw n;case 50:return o.finish(47);case 51:return o.finish(44);case 52:case"end":return o.stop()}},o,this,[[3,40,44,52],[12,23,27,35],[28,,30,34],[45,,47,51]])}),i.prototype.iitr=regeneratorRuntime.mark(function c(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(this.initr(e),"t0",1);case 1:return r.delegateYield(this.outitr(e),"t1",2);case 2:case"end":return r.stop()}},c,this)}),i.prototype.initr=regeneratorRuntime.mark(function u(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.pred.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,o.ref;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},u,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.outitr=regeneratorRuntime.mark(function p(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.succ.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,o.ref;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},p,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.nitr=regeneratorRuntime.mark(function v(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(this.dsitr(e),"t0",1);case 1:return r.delegateYield(this.dpitr(e),"t1",2);case 2:case"end":return r.stop()}},v,this)}),i.prototype.dsitr=regeneratorRuntime.mark(function f(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.succ.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value.v,c.next=9,o;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},f,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.dpitr=regeneratorRuntime.mark(function h(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.pred.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value.v,c.next=9,o;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},h,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.vertices=i.prototype.vitr,i.prototype.edges=regeneratorRuntime.mark(function l(){var e,t,n,a,i,s,o,c,u,p,v,f,h,d;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e=!0,t=!1,n=r,l.prev=3,a=this.succ[Symbol.iterator]();case 5:if(e=(i=a.next()).done){l.next=38;break}s=_slicedToArray(i.value,2),o=s[0],c=s[1],u=!0,p=!1,v=r,l.prev=12,f=c[Symbol.iterator]();case 14:if(u=(h=f.next()).done){l.next=21;break}return d=h.value,l.next=18,[d.u,d.v,d.ref];case 18:u=!0,l.next=14;break;case 21:l.next=27;break;case 23:l.prev=23,l.t0=l["catch"](12),p=!0,v=l.t0;case 27:l.prev=27,l.prev=28,!u&&f["return"]&&f["return"]();case 30:if(l.prev=30,!p){l.next=33;break}throw v;case 33:return l.finish(30);case 34:return l.finish(27);case 35:e=!0,l.next=5;break;case 38:l.next=44;break;case 40:l.prev=40,l.t1=l["catch"](3),t=!0,n=l.t1;case 44:l.prev=44,l.prev=45,!e&&a["return"]&&a["return"]();case 47:if(l.prev=47,!t){l.next=50;break}throw n;case 50:return l.finish(47);case 51:return l.finish(44);case 52:case"end":return l.stop()}},l,this,[[3,40,44,52],[12,23,27,35],[28,,30,34],[45,,47,51]])}),i.prototype.incident=regeneratorRuntime.mark(function d(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(this.ingoing(e),"t0",1);case 1:return r.delegateYield(this.outgoing(e),"t1",2);case 2:case"end":return r.stop()}},d,this)}),i.prototype.ingoing=regeneratorRuntime.mark(function x(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.pred.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.v,o.u,o.ref];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},x,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.outgoing=regeneratorRuntime.mark(function y(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.succ.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.u,o.v,o.ref];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},y,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.endpoints=function(e){return e.list===this.succ.get(e.u)?[e.u,e.v]:[e.v,e.u]},i.prototype.reverse=function(){var e=[this.pred,this.succ];return this.succ=e[0],this.pred=e[1],this},i};e.MultiDiGraph=i;var s=function(e){var t=function(){this.V=new e,this.E=new e};return t.prototype.vadd=function(){var r=new o(new e);return r.iterator=this.V.push(r),r},t.prototype.vdel=function(e){var t=!0,n=!1,a=r;try{for(var i,s=this.iitr(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var o=i.value;this.edel(o)}}catch(c){n=!0,a=c}finally{try{!t&&s["return"]&&s["return"]()}finally{if(n)throw a}}this.V.erase(e.iterator)},t.prototype.eadd=function(e,r){var t=new a(e,r);return t.iterator=this.E.push(t),t.uiterator=e.E.push(t),e!==r&&(t.viterator=r.E.push(t)),t},t.prototype.edel=function(e){this.E.erase(e.iterator),e.u.E.erase(e.uiterator),e.u!==e.v&&e.v.E.erase(e.viterator)},t.prototype.vitr=regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.V,"t0",1);case 1:case"end":return e.stop()}},n,this)}),t.prototype.eitr=regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.E,"t0",1);case 1:case"end":return e.stop()}},i,this)}),t.prototype.iitr=regeneratorRuntime.mark(function s(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(e.E,"t0",1);case 1:case"end":return r.stop()}},s,this)}),t.prototype.initr=t.prototype.iitr,t.prototype.outitr=t.prototype.iitr,t.prototype.nitr=regeneratorRuntime.mark(function c(e){var t,n,a,i,s,o,u,p;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=e.E[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=14;break}return o=s.value,u=o.u,p=o.v,c.next=11,u===e?p:u;case 11:t=!0,c.next=5;break;case 14:c.next=20;break;case 16:c.prev=16,c.t0=c["catch"](3),n=!0,a=c.t0;case 20:c.prev=20,c.prev=21,!t&&i["return"]&&i["return"]();case 23:if(c.prev=23,!n){c.next=26;break}throw a;case 26:return c.finish(23);case 27:return c.finish(20);case 28:case"end":return c.stop()}},c,this,[[3,16,20,28],[21,,23,27]])}),t.prototype.dsitr=t.prototype.nitr,t.prototype.dpitr=t.prototype.nitr,t.prototype.vertices=t.prototype.vitr,t.prototype.edges=regeneratorRuntime.mark(function u(){var e,t,n,a,i,s;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e=!0,t=!1,n=r,o.prev=3,a=this.eitr()[Symbol.iterator]();case 5:if(e=(i=a.next()).done){o.next=12;break}return s=i.value,o.next=9,[s.u,s.v,s];case 9:e=!0,o.next=5;break;case 12:o.next=18;break;case 14:o.prev=14,o.t0=o["catch"](3),t=!0,n=o.t0;case 18:o.prev=18,o.prev=19,!e&&a["return"]&&a["return"]();case 21:if(o.prev=21,!t){o.next=24;break}throw n;case 24:return o.finish(21);case 25:return o.finish(18);case 26:case"end":return o.stop()}},u,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.incident=regeneratorRuntime.mark(function p(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.iitr(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.u,o.v,o];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},p,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.ingoing=regeneratorRuntime.mark(function v(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.iitr(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.u===e?o.v:o.u,e,o];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},v,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.outgoing=regeneratorRuntime.mark(function f(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.iitr(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[e,o.u===e?o.v:o.u,o];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},f,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.endpoints=function(e){return[e.u,e.v]},t.prototype.reverse=function(){},t};e.MultiGraph=s;var o=function(e){this.iterator=null,this.E=e};return e.Vertex=o,e};"object"==typeof exports?e(exports):"function"==typeof define&&define.amd?define("aureooms-js-adjacency-list",[],function(){return e({})}):"object"==typeof window&&"object"==typeof window.document?e(window.adjacencylist={}):console.error("unable to detect type of module to define for aureooms-js-adjacency-list")}();
"use strict";var _slicedToArray=function(){function e(e,r){var t=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(t.push(s.value),!r||t.length!==r);n=!0);}catch(c){a=!0,i=c}finally{try{!n&&o["return"]&&o["return"]()}finally{if(a)throw i}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();!function(){var e=function(e,r){var t=function(e,r,t){this.u=e,this.v=r,this.ref=null,this.twin=null,this.iterator=null,this.list=t};e.DiEdge=t;var n=function(){this.iterator=null};e.DiVertex=n;var a=function(e,r){this.u=e,this.v=r,this.iterator=null,this.uiterator=null,this.viterator=null};e.Edge=a;var i=function(e,a){var i=function(){this.V=new e,this.succ=new a,this.pred=new a};return i.prototype.vadd=function(){var r=new n;return this.succ.set(r,new e),this.pred.set(r,new e),r.iterator=this.V.push(r),r},i.prototype.vdel=function(e){var t=!0,n=!1,a=r;try{for(var i,s=this.initr(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var o=i.value;this.edel(o)}}catch(c){n=!0,a=c}finally{try{!t&&s["return"]&&s["return"]()}finally{if(n)throw a}}var u=!0,p=!1,v=r;try{for(var f,h=this.outitr(e)[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var o=f.value;this.edel(o)}}catch(c){p=!0,v=c}finally{try{!u&&h["return"]&&h["return"]()}finally{if(p)throw v}}this.pred["delete"](e),this.succ["delete"](e),this.V.erase(e.iterator)},i.prototype.eadd=function(e,r){var n=new t(e,r,this.succ.get(e)),a=new t(r,e,this.pred.get(r));return n.iterator=n.list.push(n),a.iterator=a.list.push(a),n.twin=a,a.twin=n,n.ref=n,a.ref=n,n},i.prototype.edel=function(e){e.list.erase(e.iterator),e.twin.list.erase(e.twin.iterator)},i.prototype.vitr=regeneratorRuntime.mark(function s(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.V,"t0",1);case 1:case"end":return e.stop()}},s,this)}),i.prototype.eitr=regeneratorRuntime.mark(function o(){var e,t,n,a,i,s,c,u,p,v,f,h,l,d;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e=!0,t=!1,n=r,o.prev=3,a=this.succ[Symbol.iterator]();case 5:if(e=(i=a.next()).done){o.next=38;break}s=_slicedToArray(i.value,2),c=s[0],u=s[1],p=!0,v=!1,f=r,o.prev=12,h=u[Symbol.iterator]();case 14:if(p=(l=h.next()).done){o.next=21;break}return d=l.value,o.next=18,d.ref;case 18:p=!0,o.next=14;break;case 21:o.next=27;break;case 23:o.prev=23,o.t0=o["catch"](12),v=!0,f=o.t0;case 27:o.prev=27,o.prev=28,!p&&h["return"]&&h["return"]();case 30:if(o.prev=30,!v){o.next=33;break}throw f;case 33:return o.finish(30);case 34:return o.finish(27);case 35:e=!0,o.next=5;break;case 38:o.next=44;break;case 40:o.prev=40,o.t1=o["catch"](3),t=!0,n=o.t1;case 44:o.prev=44,o.prev=45,!e&&a["return"]&&a["return"]();case 47:if(o.prev=47,!t){o.next=50;break}throw n;case 50:return o.finish(47);case 51:return o.finish(44);case 52:case"end":return o.stop()}},o,this,[[3,40,44,52],[12,23,27,35],[28,,30,34],[45,,47,51]])}),i.prototype.iitr=regeneratorRuntime.mark(function c(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(this.initr(e),"t0",1);case 1:return r.delegateYield(this.outitr(e),"t1",2);case 2:case"end":return r.stop()}},c,this)}),i.prototype.initr=regeneratorRuntime.mark(function u(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.pred.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,o.ref;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},u,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.outitr=regeneratorRuntime.mark(function p(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.succ.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,o.ref;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},p,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.nitr=regeneratorRuntime.mark(function v(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(this.dsitr(e),"t0",1);case 1:return r.delegateYield(this.dpitr(e),"t1",2);case 2:case"end":return r.stop()}},v,this)}),i.prototype.dsitr=regeneratorRuntime.mark(function f(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.succ.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value.v,c.next=9,o;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},f,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.dpitr=regeneratorRuntime.mark(function h(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.pred.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value.v,c.next=9,o;case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},h,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.vertices=i.prototype.vitr,i.prototype.edges=regeneratorRuntime.mark(function l(){var e,t,n,a,i,s,o,c,u,p,v,f,h,d;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e=!0,t=!1,n=r,l.prev=3,a=this.succ[Symbol.iterator]();case 5:if(e=(i=a.next()).done){l.next=38;break}s=_slicedToArray(i.value,2),o=s[0],c=s[1],u=!0,p=!1,v=r,l.prev=12,f=c[Symbol.iterator]();case 14:if(u=(h=f.next()).done){l.next=21;break}return d=h.value,l.next=18,[d.u,d.v,d.ref];case 18:u=!0,l.next=14;break;case 21:l.next=27;break;case 23:l.prev=23,l.t0=l["catch"](12),p=!0,v=l.t0;case 27:l.prev=27,l.prev=28,!u&&f["return"]&&f["return"]();case 30:if(l.prev=30,!p){l.next=33;break}throw v;case 33:return l.finish(30);case 34:return l.finish(27);case 35:e=!0,l.next=5;break;case 38:l.next=44;break;case 40:l.prev=40,l.t1=l["catch"](3),t=!0,n=l.t1;case 44:l.prev=44,l.prev=45,!e&&a["return"]&&a["return"]();case 47:if(l.prev=47,!t){l.next=50;break}throw n;case 50:return l.finish(47);case 51:return l.finish(44);case 52:case"end":return l.stop()}},l,this,[[3,40,44,52],[12,23,27,35],[28,,30,34],[45,,47,51]])}),i.prototype.incident=regeneratorRuntime.mark(function d(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(this.ingoing(e),"t0",1);case 1:return r.delegateYield(this.outgoing(e),"t1",2);case 2:case"end":return r.stop()}},d,this)}),i.prototype.ingoing=regeneratorRuntime.mark(function x(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.pred.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.v,o.u,o.ref];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},x,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.outgoing=regeneratorRuntime.mark(function y(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.succ.get(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.u,o.v,o.ref];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},y,this,[[3,14,18,26],[19,,21,25]])}),i.prototype.endpoints=function(e){return e.list===this.succ.get(e.u)?[e.u,e.v]:[e.v,e.u]},i.prototype.reverse=function(){var e=[this.pred,this.succ];return this.succ=e[0],this.pred=e[1],this},i};e.MultiDiGraph=i;var s=function(e){var t=function(){this.V=new e,this.E=new e};return t.prototype.vadd=function(){var r=new o(new e);return r.iterator=this.V.push(r),r},t.prototype.vdel=function(e){var t=!0,n=!1,a=r;try{for(var i,s=this.iitr(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var o=i.value;this.edel(o)}}catch(c){n=!0,a=c}finally{try{!t&&s["return"]&&s["return"]()}finally{if(n)throw a}}this.V.erase(e.iterator)},t.prototype.eadd=function(e,r){var t=new a(e,r);return t.iterator=this.E.push(t),t.uiterator=e.E.push(t),e!==r&&(t.viterator=r.E.push(t)),t},t.prototype.edel=function(e){this.E.erase(e.iterator),e.u.E.erase(e.uiterator),e.u!==e.v&&e.v.E.erase(e.viterator)},t.prototype.vitr=regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.V,"t0",1);case 1:case"end":return e.stop()}},n,this)}),t.prototype.eitr=regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this.E,"t0",1);case 1:case"end":return e.stop()}},i,this)}),t.prototype.iitr=regeneratorRuntime.mark(function s(e){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(e.E,"t0",1);case 1:case"end":return r.stop()}},s,this)}),t.prototype.initr=t.prototype.iitr,t.prototype.outitr=t.prototype.iitr,t.prototype.nitr=regeneratorRuntime.mark(function c(e){var t,n,a,i,s,o,u,p;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=e.E[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=14;break}return o=s.value,u=o.u,p=o.v,c.next=11,u===e?p:u;case 11:t=!0,c.next=5;break;case 14:c.next=20;break;case 16:c.prev=16,c.t0=c["catch"](3),n=!0,a=c.t0;case 20:c.prev=20,c.prev=21,!t&&i["return"]&&i["return"]();case 23:if(c.prev=23,!n){c.next=26;break}throw a;case 26:return c.finish(23);case 27:return c.finish(20);case 28:case"end":return c.stop()}},c,this,[[3,16,20,28],[21,,23,27]])}),t.prototype.dsitr=t.prototype.nitr,t.prototype.dpitr=t.prototype.nitr,t.prototype.vertices=t.prototype.vitr,t.prototype.edges=regeneratorRuntime.mark(function u(){var e,t,n,a,i,s;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e=!0,t=!1,n=r,o.prev=3,a=this.eitr()[Symbol.iterator]();case 5:if(e=(i=a.next()).done){o.next=12;break}return s=i.value,o.next=9,[s.u,s.v,s];case 9:e=!0,o.next=5;break;case 12:o.next=18;break;case 14:o.prev=14,o.t0=o["catch"](3),t=!0,n=o.t0;case 18:o.prev=18,o.prev=19,!e&&a["return"]&&a["return"]();case 21:if(o.prev=21,!t){o.next=24;break}throw n;case 24:return o.finish(21);case 25:return o.finish(18);case 26:case"end":return o.stop()}},u,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.incident=regeneratorRuntime.mark(function p(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.iitr(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.u,o.v,o];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},p,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.ingoing=regeneratorRuntime.mark(function v(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.initr(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[o.u===e?o.v:o.u,e,o];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},v,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.outgoing=regeneratorRuntime.mark(function f(e){var t,n,a,i,s,o;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:t=!0,n=!1,a=r,c.prev=3,i=this.outitr(e)[Symbol.iterator]();case 5:if(t=(s=i.next()).done){c.next=12;break}return o=s.value,c.next=9,[e,o.u===e?o.v:o.u,o];case 9:t=!0,c.next=5;break;case 12:c.next=18;break;case 14:c.prev=14,c.t0=c["catch"](3),n=!0,a=c.t0;case 18:c.prev=18,c.prev=19,!t&&i["return"]&&i["return"]();case 21:if(c.prev=21,!n){c.next=24;break}throw a;case 24:return c.finish(21);case 25:return c.finish(18);case 26:case"end":return c.stop()}},f,this,[[3,14,18,26],[19,,21,25]])}),t.prototype.endpoints=function(e){return[e.u,e.v]},t.prototype.reverse=function(){},t};e.MultiGraph=s;var o=function(e){this.iterator=null,this.E=e};return e.Vertex=o,e};"object"==typeof exports?e(exports):"function"==typeof define&&define.amd?define("aureooms-js-adjacency-list",[],function(){return e({})}):"object"==typeof window&&"object"==typeof window.document?e(window.adjacencylist={}):console.error("unable to detect type of module to define for aureooms-js-adjacency-list")}();
//# sourceMappingURL=js/dist/adjacency-list.js.map

@@ -128,3 +128,3 @@

for ( let e of this.iitr( v ) ) yield [ e.u === v ? e.v : e.u , v , e ] ;
for ( let e of this.initr( v ) ) yield [ e.u === v ? e.v : e.u , v , e ] ;

@@ -135,3 +135,3 @@ } ;

for ( let e of this.iitr( v ) ) yield [ v , e.u === v ? e.v : e.u , e ] ;
for ( let e of this.outitr( v ) ) yield [ v , e.u === v ? e.v : e.u , e ] ;

@@ -138,0 +138,0 @@ } ;

{
"main": "js/dist/adjacency-list.js",
"version": "4.0.2",
"version": "4.0.3",
"bugs": {

@@ -5,0 +5,0 @@ "url": "https://github.com/aureooms/js-adjacency-list/issues"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc