If the center atom only has 6 electrons it will form a double bond with an attached atom if there are non-bonded electron pairs on the attached atom. Remember that elements in groups IA to IIIA do not form octets of electrons.

If the center atom only has 4 electrons it forms either two double bonds with two adjacent atoms or a triple bond with one adjacent outer atom.