add support for TGF (trivial graph format) output