def get_bonded_particle_list(residue):
    """
    Returns the list of names for particles that are bonded together in this residue.

    Parameters
    ----------

    residue: A dictionary containing information about the particles in a residue/monomer type

    Returns
    -------

    bonded_list: A list of the particles that are bonded together in this residue type.
    List([[atom_1_name(str),atom_2_name(str)]])

    """
    bonded_list = []
    atom_1_name = str("BB1")
    for backbone_bead in residue['backbone_length']:
        if backbone_bead != 0:
            atom_2_name = str("BB"+str(backbone_bead+1))
            bonded_list.append([atom_1_name, atom_2_name])
            atom_1_name = atom_2_name
            if backbone_bead in residue['sidechain_positions']:
                for sidechain_bead in residue['sidechain_length']:
                    atom_2_name = str("SC"+str(sidechain_bead+1))
                    bonded_list.append([atom_1_name, atom_2_name])
                    atom_1_name = atom_2_name
                if residue['sidechain_length'] == 1:
                    atom_2_name = str("VIRT")
                    bonded_list.append([atom_1_name, atom_2_name])
        atom_1_name = str("BB"+str(backbone_bead+1))
    return(bonded_list)