void countNonZeroInV( int []parent ) {
        int []w = gwork.data;
        findMinElementIndexInRows(leftmost);
        createRowElementLinkedLists(leftmost,w);
        countNonZeroUsingLinkedList(parent,w);
    }
void countNonZeroInV ( int [ ] parent ) { int [ ] w = gwork . data ; findMinElementIndexInRows ( leftmost ) ; createRowElementLinkedLists ( leftmost , w ) ; countNonZeroUsingLinkedList ( parent , w ) ; }
Count the number of non-zero elements in V