graph io class interface