Skip to content

Instantly share code, notes, and snippets.

@d3x0r
Created June 15, 2020 12:57
Show Gist options
  • Save d3x0r/ff718d6a00e4e425bbab9e3ab4ec55fe to your computer and use it in GitHub Desktop.
Save d3x0r/ff718d6a00e4e425bbab9e3ab4ec55fe to your computer and use it in GitHub Desktop.
Test Graph
//const JSOX = require( "./jsox.js" );
let nodes = 0;
function node() {
nodes++;
this.id = nodes;
this.mates = [];
}
node.prototype.add = function(n) { this.mates.push(n) }
node.prototype.isEdge = function(x) { return this.mates.find(m=>m===x) }
var i;
let root = null;
let test2 = null;
for( let i = 0; i < 50; i++ ) {
const n_ = new node();
if( root ) {
root.add(n_);
n_.add(root );
} else test2 = n_;
root = n_;
}
let here = root;
let test1 = root;
let test = [null,null,null,null];
for( let i = 0; i < 5; i++ ) {
// skip 5
for( let j = 0; j < 6; j++ ) here = here.mates[0];
let tmp = here;
// add 8 that loop to next
for( let j = 0; j < 8; j++ ) {
const n_ = new node();
if( i === j ) test[i] = n_;
tmp.add( n_ );
if( j === 7 ) {
n_.add( here.mates[0] ); // circle end back to list next...
}
tmp = n_;
}
}
//console.log( "Graph:", JSOX.stringify( root ) );
//console.log( "Graph:", JSOX.stringify( root, null, "\t" ) );
function reach( A, C, length ) {
maxdepth = 0;
depth = 0;
const r = reach_( A, C, length );
console.log( "Return R:", r, depth, maxdepth );
return r;
// ended up wrapping this to setup depth counters.
function reach_( A, C, length ) {
depth++;
if( depth > maxdepth ) maxdepth = depth;
//console.log( "Look at:", A.id, C.id, length, depth );
if( A === C ) { depth--; return true; }
if (length == 0) { depth--; return true }
else if (length == 1) { depth--; return !!A.isEdge( C ) }
else {
for( let B of A.mates ) {
//console.log( "Mate of A:", A.id, B.id );
if( reach_( A, B, length>>1 ) && reach_( B, C, length>>1 ) ) {
depth--;
return true;
}
//console.log( "no reach a b b c", aStat, bStat );
}
}
depth--;
return false;
}
}
console.log( "1 ", reach( root, root.mates[0].mates[0], nodes ) );
console.log( "1 2 ", reach( test1, test2, nodes ) );
console.log( "1 [0] ", reach( test1, test[0], nodes ) );
console.log( "1 [1] ", reach( test1, test[1], nodes ) );
console.log( "1 [2] ", reach( test1, test[2], nodes ) );
console.log( "1 [3] ", reach( test1, test[3], nodes ) );
Graph:
{
id: 50,
mates: [
{
id: 49,
mates: [
{
id: 48,
mates: [
{
id: 47,
mates: [
{
id: 46,
mates: [
{
id: 45,
mates: [
{
id: 44,
mates: [
{
id: 43,
mates: [
{
id: 42,
mates: [
{
id: 41,
mates: [
{
id: 40,
mates: [
{
id: 39,
mates: [
{
id: 38,
mates: [
{
id: 37,
mates: [
{
id: 36,
mates: [
{
id: 35,
mates: [
{
id: 34,
mates: [
{
id: 33,
mates: [
{
id: 32,
mates: [
{
id: 31,
mates: [
{
id: 30,
mates: [
{
id: 29,
mates: [
{
id: 28,
mates: [
{
id: 27,
mates: [
{
id: 26,
mates: [
{
id: 25,
mates: [
{
id: 24,
mates: [
{
id: 23,
mates: [
{
id: 22,
mates: [
{
id: 21,
mates: [
{
id: 20,
mates: [
{
id: 19,
mates: [
{
id: 18,
mates: [
{
id: 17,
mates: [
{
id: 16,
mates: [
{
id: 15,
mates: [
{
id: 14,
mates: [
{
id: 13,
mates: [
{
id: 12,
mates: [
{
id: 11,
mates: [
{
id: 10,
mates: [
{
id: 9,
mates: [
{
id: 8,
mates: [
{
id: 7,
mates: [
{
id: 6,
mates: [
{
id: 5,
mates: [
{
id: 4,
mates: [
{
id: 3,
mates: [
{
id: 2,
mates: [
{
id: 1,
mates: [
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0],
{
id: 83,
mates: [
{
id: 84,
mates: [
{
id: 85,
mates: [
{
id: 86,
mates: [
{
id: 87,
mates: [
{
id: 88,
mates: [
{
id: 89,
mates: [
{
id: 90,
mates: [
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0],
{
id: 75,
mates: [
{
id: 76,
mates: [
{
id: 77,
mates: [
{
id: 78,
mates: [
{
id: 79,
mates: [
{
id: 80,
mates: [
{
id: 81,
mates: [
{
id: 82,
mates: [
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0],
{
id: 67,
mates: [
{
id: 68,
mates: [
{
id: 69,
mates: [
{
id: 70,
mates: [
{
id: 71,
mates: [
{
id: 72,
mates: [
{
id: 73,
mates: [
{
id: 74,
mates: [
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0],
{
id: 59,
mates: [
{
id: 60,
mates: [
{
id: 61,
mates: [
{
id: 62,
mates: [
{
id: 63,
mates: [
{
id: 64,
mates: [
{
id: 65,
mates: [
{
id: 66,
mates: [
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0],
{
id: 51,
mates: [
{
id: 52,
mates: [
{
id: 53,
mates: [
{
id: 54,
mates: [
{
id: 55,
mates: [
{
id: 56,
mates: [
{
id: 57,
mates: [
{
id: 58,
mates: [
ref["mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0,"mates",0]
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
ref["mates",0,"mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0,"mates",0]
]
},
ref["mates",0,"mates",0]
]
},
ref["mates",0]
]
},
ref[]
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment