bayehem/rsem/detonate-1.11/ref-eval/ref-eval-estimate-true-assembly.cpp
int find(int u, const std::vector<ContigStruct>& contigs)
{
  while (contigs[u].parent != u)
    u = contigs[u].parent;
  return u;
}
// Returns the root of the scaffold involving u.
Returns the root of the scaffold involving u.
Returns the root of the scaffold involving u .
int find(int u, const std::vector<ContigStruct>& contigs)
{
  while (contigs[u].parent != u)
    u = contigs[u].parent;
  return u;
}
int find ( int u , const std :: vector < ContigStruct > & contigs ) { while ( contigs [ u ] . parent != u ) u = contigs [ u ] . parent ; return u ; }
Returns the root of the scaffold involving u.
Returns the root of the scaffold involving u .