document Graph._write_relation method