This commit is contained in:
nim-ka
2022-11-08 22:30:37 +00:00
parent b5e7f07541
commit f8e9088e67
13 changed files with 616 additions and 341 deletions

View File

@@ -1,11 +1,11 @@
class Cxn {
Cxn = class Cxn {
constructor(dest, weight = 1) {
this.dest = dest
this.weight = weight
}
}
class SearchData {
SearchData = class SearchData {
constructor(id, dist = Infinity, last = undefined, custom = {}) {
this.id = id
this.dist = dist
@@ -37,7 +37,7 @@ class SearchData {
}
}
class Node {
Node = class Node {
static GLOBAL_ID = 0
constructor(val) {