convertToCircularList(toRef) {
        if(toRef === null){
        this.CreateCircularArrow(this.get(this.size - 1), this.get(0));
        
        }
        else{
            var index = this.getNodeIndexByReference(toRef)
            this.CreateCircularArrow(this.get(this.size - 1), this.get(index));
        }
        this.circularEdge.show();
        this.last().next(this.first());
        var edge = this.get(this.size - 1).edgeToNext();
        edge.hide();
        return true;
    }
/**
     * Converts the list to Circular linked list
     */
Converts the list to Circular linked list
Converts the list to Circular linked list
convertToCircularList(toRef) {
        if(toRef === null){
        this.CreateCircularArrow(this.get(this.size - 1), this.get(0));
        }
        else{
            var index = this.getNodeIndexByReference(toRef)
            this.CreateCircularArrow(this.get(this.size - 1), this.get(index));
        }
        this.circularEdge.show();
        this.last().next(this.first());
        var edge = this.get(this.size - 1).edgeToNext();
        edge.hide();
        return true;
    }
convertToCircularList ( toRef ) { if ( toRef === null ) { this . CreateCircularArrow ( this . get ( this . size - 1 ) , this . get ( 0 ) ) ; } else { var index = this . getNodeIndexByReference ( toRef ) this . CreateCircularArrow ( this . get ( this . size - 1 ) , this . get ( index ) ) ; } this . circularEdge . show ( ) ; this . last ( ) . next ( this . first ( ) ) ; var edge = this . get ( this . size - 1 ) . edgeToNext ( ) ; edge . hide ( ) ; return true ; }
Converts the list to Circular linked list
Converts the list to Circular linked list