File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 55using  namespace  sdsl ; 
66using  namespace  std ; 
77
8- typedef  cst_sct3<> cst_t ;
9- 
108int  main (int  argc, char * argv[])
119{
12-     cst_t  cst;
10+     cst_sct3<>  cst;
1311    construct (cst, argv[1 ], 1 );
1412    uint64_t  max_depth = stoull (argv[2 ]);
1513
1614    //  use the DFS iterator to traverse `cst`
17-     for  (cst_t ::const_iterator  it=cst.begin (); it!=cst.end (); ++it) {
15+     for  (auto  it=cst.begin (); it!=cst.end (); ++it) {
1816        if  (it.visit () == 1 ) {  //  node visited the first time
19-             cst_t ::node_type  v = *it;   //  get the node by dereferencing the iterator
17+             auto  v = *it;        //  get the node by dereferencing the iterator
2018            if  (cst.depth (v) <= max_depth) {   //  if depth node is <= max_depth
2119                //  process node, e.g. output it in format d-[lb, rb]
2220                cout<<cst.depth (v)<<" -[" lb (v)<< " ," rb (v)<<" ]" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments