Sort chains by node count

This commit is contained in:
maciejhirsz
2018-07-12 16:04:04 +02:00
parent 47b80ad30e
commit ea8d7ad77d
10 changed files with 63 additions and 25 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export default class Chain {
this.label = label;
}
public get nodeCount(): number {
return this.nodes.size;
public get nodeCount(): Types.NodeCount {
return this.nodes.size as Types.NodeCount;
}
public addNode(node: Node) {