@@ -2,71 +2,71 @@ import { LogTracer, Tracer } from './';
22
33class GraphTracer extends Tracer {
44 set ( array2d ?: any [ ] [ ] ) : this {
5- return this . addTrace ( 'set' , arguments ) ;
5+ return this . command ( 'set' , arguments ) ;
66 }
77
88 directed ( isDirected ?: boolean ) : this {
9- return this . addTrace ( 'directed' , arguments ) ;
9+ return this . command ( 'directed' , arguments ) ;
1010 }
1111
1212 weighted ( isWeighted ?: boolean ) : this {
13- return this . addTrace ( 'weighted' , arguments ) ;
13+ return this . command ( 'weighted' , arguments ) ;
1414 }
1515
1616 addNode ( id : any , weight ?: any , x ?: number , y ?: number , visitedCount ?: number , selectedCount ?: number ) : this {
17- return this . addTrace ( 'addNode' , arguments ) ;
17+ return this . command ( 'addNode' , arguments ) ;
1818 }
1919
2020 updateNode ( id : any , weight ?: any , x ?: number , y ?: number , visitedCount ?: number , selectedCount ?: number ) : this {
21- return this . addTrace ( 'updateNode' , arguments ) ;
21+ return this . command ( 'updateNode' , arguments ) ;
2222 }
2323
2424 removeNode ( id : any ) : this {
25- return this . addTrace ( 'removeNode' , arguments ) ;
25+ return this . command ( 'removeNode' , arguments ) ;
2626 }
2727
2828 addEdge ( source : any , target : any , weight ?: any , visitedCount ?: number , selectedCount ?: number ) : this {
29- return this . addTrace ( 'addEdge' , arguments ) ;
29+ return this . command ( 'addEdge' , arguments ) ;
3030 }
3131
3232 updateEdge ( source : any , target : any , weight ?: any , visitedCount ?: number , selectedCount ?: number ) : this {
33- return this . addTrace ( 'updateEdge' , arguments ) ;
33+ return this . command ( 'updateEdge' , arguments ) ;
3434 }
3535
3636 removeEdge ( source : any , target : any ) : this {
37- return this . addTrace ( 'removeEdge' , arguments ) ;
37+ return this . command ( 'removeEdge' , arguments ) ;
3838 }
3939
4040 layoutCircle ( ) {
41- return this . addTrace ( 'layoutCircle' , arguments ) ;
41+ return this . command ( 'layoutCircle' , arguments ) ;
4242 }
4343
4444 layoutTree ( root ?: any , sorted ?: boolean ) {
45- return this . addTrace ( 'layoutTree' , arguments ) ;
45+ return this . command ( 'layoutTree' , arguments ) ;
4646 }
4747
4848 layoutRandom ( ) {
49- return this . addTrace ( 'layoutRandom' , arguments ) ;
49+ return this . command ( 'layoutRandom' , arguments ) ;
5050 }
5151
5252 visit ( target : any , source ?: any , weight ?: any ) {
53- return this . addTrace ( 'visit' , arguments ) ;
53+ return this . command ( 'visit' , arguments ) ;
5454 }
5555
5656 leave ( target : any , source ?: any , weight ?: any ) {
57- return this . addTrace ( 'leave' , arguments ) ;
57+ return this . command ( 'leave' , arguments ) ;
5858 }
5959
6060 select ( target : any , source ?: any ) {
61- return this . addTrace ( 'select' , arguments ) ;
61+ return this . command ( 'select' , arguments ) ;
6262 }
6363
6464 deselect ( target : any , source ?: any ) {
65- return this . addTrace ( 'deselect' , arguments ) ;
65+ return this . command ( 'deselect' , arguments ) ;
6666 }
6767
6868 log ( logTracer : LogTracer ) {
69- return this . addTrace ( 'log' , arguments ) ;
69+ return this . command ( 'log' , arguments ) ;
7070 }
7171}
7272
0 commit comments