def read_hierarchy(self, fid):
lin = self.read_line(fid)<EOL>while lin != '<STR_LIT:end>':<EOL><INDENT>parts = lin.split()<EOL>if lin != '<STR_LIT>':<EOL><INDENT>ind = self.get_index_by_name(parts[<NUM_LIT:0>])<EOL>for i in range(<NUM_LIT:1>, len(parts)):<EOL><INDENT>self.vertices[ind].children.append(self.get_index_by_name(parts[i]))<EOL><DEDENT><DEDENT>lin = self.read_line(fid)<EOL><DEDENT>lin = self.read_line(fid)<EOL>return lin<EOL>
Read hierarchy information from acclaim skeleton file stream.