Symmetric squares of graphs