Initial commit

This commit is contained in:
Henning Dieterichs
2019-06-20 11:41:10 +02:00
commit 07132b759a
29 changed files with 17302 additions and 0 deletions

30
example/index.js Normal file
View File

@@ -0,0 +1,30 @@
const matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
];
let str = "test1";
for (let i = 0; i < 100000; i++) {
str += i;
}
function randInt(max) {
return Math.floor(Math.random() * max);
}
const nodes = [];
for (let i = 0; i < 10; i++) {
nodes.push(i);
}
const edges = [];
for (let j = 0; j < 15; j++) {
edges.push([ randInt(nodes.length - 1), randInt(nodes.length - 1) ]);
}
console.log(matrix, str);