A network of molecules and atoms of glass and crystals