'Parse the call graph.'

def parse_cg(self):

    while (not self._cg_header_re.match(self.readline())):
        pass
    line = self.readline()
    while self._cg_header_re.match(line):
        line = self.readline()
    entry_lines = []
    while (line != '\x0c'):
        if (line and (not line.isspace())):
            if self._cg_sep_re.match(line):
                self.parse_cg_entry(entry_lines)
                entry_lines = []
            else:
                entry_lines.append(line)
        line = self.readline()
