creating cliqued graphs