增加进入新函数不计算泄露结点的功能
This commit is contained in:
+137
-139
@@ -95,145 +95,143 @@
|
||||
});
|
||||
|
||||
let data = [{
|
||||
"BinaryTree0": {
|
||||
"data": [{
|
||||
"external": [
|
||||
"T1"
|
||||
],
|
||||
"child": [
|
||||
"0x617ee0",
|
||||
"0x617f10"
|
||||
],
|
||||
"id": "0x617eb0",
|
||||
"name": "T1",
|
||||
"data": "Z",
|
||||
"root": true,
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x617ee0",
|
||||
"name": "T1->lchild",
|
||||
"data": "A",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x617f10",
|
||||
"name": "T1->rchild",
|
||||
"data": "B",
|
||||
"type": "default",
|
||||
"external": [
|
||||
"r",
|
||||
"t"
|
||||
]
|
||||
}],
|
||||
"layouter": "BinaryTree"
|
||||
},
|
||||
"BinaryTree3": {
|
||||
"data": [{
|
||||
"external": [
|
||||
"T2",
|
||||
"r2"
|
||||
],
|
||||
"child": [
|
||||
"0x617f70",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x617f40",
|
||||
"name": "T2",
|
||||
"data": "Z",
|
||||
"root": true,
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x617f70",
|
||||
"name": "T2->lchild",
|
||||
"data": "D",
|
||||
"type": "default",
|
||||
"external": [
|
||||
"t2"
|
||||
]
|
||||
}],
|
||||
"layouter": "BinaryTree"
|
||||
}
|
||||
}, {
|
||||
"BinaryTree0": {
|
||||
"data": [{
|
||||
"external": [
|
||||
"T1"
|
||||
],
|
||||
"child": [
|
||||
"0x617ee0",
|
||||
"0x617f10"
|
||||
],
|
||||
"id": "0x617eb0",
|
||||
"name": "T1",
|
||||
"data": "Z",
|
||||
"root": true,
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x617ee0",
|
||||
"name": "T1->lchild",
|
||||
"data": "A",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x617eb0"
|
||||
],
|
||||
"id": "0x617f10",
|
||||
"name": "T1->rchild",
|
||||
"data": "B",
|
||||
"type": "default"
|
||||
}],
|
||||
"layouter": "BinaryTree"
|
||||
},
|
||||
|
||||
"BinaryTree3": {
|
||||
"data": [{
|
||||
"external": [
|
||||
"T2",
|
||||
"r2"
|
||||
],
|
||||
"child": [
|
||||
"0x617f70",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x617f40",
|
||||
"name": "T2",
|
||||
"data": "Z",
|
||||
"root": true,
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x617f70",
|
||||
"name": "T2->lchild",
|
||||
"data": "D",
|
||||
"type": "default",
|
||||
"external": [
|
||||
"t2"
|
||||
]
|
||||
}],
|
||||
"layouter": "BinaryTree"
|
||||
}
|
||||
}
|
||||
|
||||
];
|
||||
"BinaryTree0": {
|
||||
"data": [{
|
||||
"external": [
|
||||
"T"
|
||||
],
|
||||
"child": [
|
||||
"0x616060",
|
||||
"0x615f40"
|
||||
],
|
||||
"id": "0x615f10",
|
||||
"name": "T",
|
||||
"data": "F",
|
||||
"root": true,
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x616090"
|
||||
],
|
||||
"id": "0x616060",
|
||||
"name": "T->lchild",
|
||||
"data": "A",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x6160c0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x616090",
|
||||
"name": "(T->lchild)->rchild",
|
||||
"data": "E",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x6160c0",
|
||||
"name": "((T->lchild)->rchild)->lchild",
|
||||
"data": "D",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x615f70",
|
||||
"0x615fd0"
|
||||
],
|
||||
"id": "0x615f40",
|
||||
"name": "T->rchild",
|
||||
"data": "U",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x615fa0",
|
||||
"0x616000"
|
||||
],
|
||||
"id": "0x615f70",
|
||||
"name": "(T->rchild)->lchild",
|
||||
"data": "S",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x615fa0",
|
||||
"name": "((T->rchild)->lchild)->lchild",
|
||||
"data": "R",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x616000",
|
||||
"name": "((T->rchild)->lchild)->rchild",
|
||||
"data": "T",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x616030"
|
||||
],
|
||||
"id": "0x615fd0",
|
||||
"name": "(T->rchild)->rchild",
|
||||
"data": "V",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x616030",
|
||||
"name": "((T->rchild)->rchild)->rchild",
|
||||
"data": "X",
|
||||
"type": "default"
|
||||
}],
|
||||
"layouter": "BinaryTree"
|
||||
},
|
||||
"isEnterFunction": true
|
||||
}, {
|
||||
"BinaryTree0": {
|
||||
"data": [{
|
||||
"external": [
|
||||
"T"
|
||||
],
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x616090"
|
||||
],
|
||||
"id": "0x616060",
|
||||
"name": "T",
|
||||
"data": "A",
|
||||
"root": true,
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x6160c0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x616090",
|
||||
"name": "T->rchild",
|
||||
"data": "E",
|
||||
"type": "default"
|
||||
}, {
|
||||
"child": [
|
||||
"0x0",
|
||||
"0x0"
|
||||
],
|
||||
"id": "0x6160c0",
|
||||
"name": "(T->rchild)->lchild",
|
||||
"data": "D",
|
||||
"type": "default"
|
||||
}],
|
||||
"layouter": "BinaryTree"
|
||||
},
|
||||
"isEnterFunction": true
|
||||
}];
|
||||
|
||||
let dataIndex = 0,
|
||||
curData = data[dataIndex];
|
||||
|
||||
Reference in New Issue
Block a user