using one write_gml for both atom and residue hb network.