function parentof = read_parents(fname)
% Read the parent information of a population from a result file

iind = 0;

fid = fopen(fname);
while 1
  tline = fgetl(fid);
  if ~ischar(tline) break; end;
  iind = iind + 1;

  repr = sscanf(tline,'%f');
  if repr(1)==0; continue; end;

  parentof{repr(1)} = repr(2:end);
end
fclose(fid);
