Utility functions for atom_diagΒΆ