text: var T=Object.create;var h=Object.defineProperty,z=Object.defineProperties,O=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols,J=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var I=(r,t,e)=>t in r?h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,f=(r,t)=>{for(var e in t||(t={}))y.call(t,e)&&I(r,e,t[e]);if(x)for(var e of x(t))U.call(t,e)&&I(r,e,t[e]);return r},j=(r,t)=>z(r,P(t)),E=r=>h(r,"__esModule",{value:!0});var M=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),V=(r,t)=>{for(var e in t)h(r,e,{get:t[e],enumerable:!0})},b=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of _(t))!y.call(r,c)&&(e||c!=="default")&&h(r,c,{get:()=>t[c],enumerable:!(n=O(t,c))||n.enumerable});return r},k=(r,t)=>b(E(h(r!=null?T(J(r)):{},"default",!t&&r&&r.__esModule?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r),C=(r=>(t,e)=>r&&r.get(t)||(e=b(E({}),t,1),r&&r.set(t,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var A=M((Z,F)=>{"use strict";var S=class{constructor(t){this.adjacencyMatrix=t}get widestPaths(){let t=this._initializeDistanceMatrix(0);for(let e=0;e<this.order;++e)for(let n=0;n<this.order;++n)if(n!==e)for(let c=0;c<this.order;++c){if(c===n||c===e)continue;let o=t[n][c],a=Math.min(t[n][e],t[e][c]);a>o&&(t[n][c]=a)}return t}get shortestPaths(){let t=this._initializeDistanceMatrix(1/0);for(let e=0;e<this.order;++e)for(let n=0;n<this.order;++n)for(let c=0;c<this.order;++c){let o=t[n][e]+t[e][c];t[n][c]>o&&(t[n][c]=o)}for(let e=0;e<this.order;++e)for(let n=0;n<this.order;++n)t[e][n]===1/0&&(t[e][n]=-1);return t}get order(){return this.adjacencyMatrix.length}_initializeDistanceMatrix(t){let e=[];for(let n=0;n<this.order;++n){e[n]=[];for(let c=0;c<this.order;++c)if(n===c)e[n][c]=0;else{let o=this.adjacencyMatrix[n][c];o?e[n][c]=o:e[n][c]=t}}return e}};F.exports=S});var D=M((exports,module)=>{var slice=Array.prototype.slice,toArray=function(r){return slice.call(r)},tail=function(r){return slice.call(r,1)},createFn=function(r,t,e){var n=e-t.length;switch(n){case 0:return function(){return processInvocation(r,concatArgs(t,arguments),e)};case 1:return function(c){return processInvocation(r,concatArgs(t,arguments),e)};case 2:return function(c,o){return processInvocation(r,concatArgs(t,arguments),e)};case 3:return function(c,o,a){return processInvocation(r,concatArgs(t,arguments),e)};case 4:return function(c,o,a,i){return processInvocation(r,concatArgs(t,arguments),e)};case 5:return function(c,o,a,i,s){return processInvocation(r,concatArgs(t,arguments),e)};case 6:return function(c,o,a,i,s,u){return processInvocation(r,concatArgs(t,arguments),e)};case 7:return function(c,o,a,i,s,u,d){return processInvocation(r,concatArgs(t,arguments),e)};case 8:return function(c,o,a,i,s,u,d,l){return processInvocation(r,concatArgs(t,arguments),e)};case 9:return function(c,o,a,i,s,u,d,l,g){return processInvocation(r,concatArgs(t,arguments),e)};case 10:return function(c,o,a,i,s,u,d,l,g,v){return processInvocation(r,concatArgs(t,arguments),e)};default:return createEvalFn(r,t,n)}},concatArgs=function(r,t){return r.concat(toArray(t))},createEvalFn=function(fn,args,arity){var argList=makeArgList(arity),fnStr="false||function("+argList+"){ return processInvocation(fn, concatArgs(args, arguments)); }";return eval(fnStr)},makeArgList=function(r){for(var t=[],e=0;e<r;e+=1)t.push("a"+e.toString());return t.join(",")},trimArrLength=function(r,t){return r.length>t?r.slice(0,t):r},processInvocation=function(r,t,e){return t=trimArrLength(t,e),t.length===e?r.apply(null,t):createFn(r,t,e)},curry=function(r){return createFn(r,[],r.length)};curry.to=curry(function(r,t){return createFn(t,[],r)});curry.adaptTo=curry(function(r,t){return curry.to(r,function(e){var n=tail(arguments).concat(e);return t.apply(this,n)})});curry.adapt=function(r){return curry.adaptTo(r.length,r)};module.exports=curry});var X={};V(X,{graphHops:()=>R,graphInterfaceCytoscapeJS:()=>q,graphInterfaceD3:()=>N,graphInterfaceDefault:()=>p,graphInterfaceVisJS:()=>W,hopsFinder:()=>L});var H=k(A(),1);var p={getNodeId:r=>r,getEdgeSource:r=>r.source,getEdgeTarget:r=>r.target,makeHop:(r,t,e,n)=>({source:n(r),target:n(t),hopDistance:e})},m=p,N=f({},p),W=j(f({},p),{getEdgeSource:r=>r.from,getEdgeTarget:r=>r.to,makeHop:(r,t,e,n)=>({from:n(r),to:n(t),hopDistance:e})}),q={getNodeId:r=>r.data.id,getEdgeSource:r=>r.data.source,getEdgeTarget:r=>r.data.target,makeHop:(r,t,e,n)=>({data:{source:n(r),target:n(t),hopDistance:e}})};var w=k(D(),1);function B(r=[],t=[],e={}){e=f(f({},m),e);let{getNodeId:n,getEdgeSource:c,getEdgeTarget:o}=e;for(var a=[],i=0;i<r.length;i++)a[i]=new Array(r.length);return t.forEach(s=>{a[r.indexOf(r.find(u=>n(u)==c(s)))][r.indexOf(r.find(u=>n(u)==o(s)))]=1}),a}var G=(r,t)=>{for(let e=0;e<r.length;e++){let n=r[e];for(let c=e;c<n.length;c++){let o=n[c];t(e,c,o)}}},K=(r,t)=>{r.forEach((e,n)=>{e.forEach((c,o)=>{t(n,o,c)})})},Q={directed:!0,graphInterface:{}},L=(0,w.default)((r,t,e)=>{r=f(f({},Q),r);let{directed:n,graphInterface:c,makeHop:o}=r;c=f(f(f({},m),c),r),o=o||c.makeHop;let a=B(t,e,c),i=new H.default(a).shortestPaths,s={},u=(d,l,g)=>{if(g>0){s[g]||(s[g]=[]);let v=o(t[d],t[l],g,c.getNodeId);s[g].push(v)}};return n?K(i,u):G(i,u),s}),R=(r,t,e)=>L(e,r,t);module.exports=C(X);0&&(module.exports={graphHops,graphInterfaceCytoscapeJS,graphInterfaceD3,graphInterfaceDefault,graphInterfaceVisJS,hopsFinder});
  //# sourceMappingURL=index.js.map
  