Add support for writing graphs as TriG.