On a technique for representing semigroups as endomorphism semigroups of graphs with given properties