Perl class for reading a graph from TGF format.