solutions graph construction and using; check for imitations are done