def __mul__(self, repeat):
if not isinstance(repeat, int):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>new_edges = []<EOL>for i in range(repeat):<EOL><INDENT>for vertex1, vertex2 in self.edges:<EOL><INDENT>new_edges.append(frozenset([<EOL>vertex1+i*self.num_vertices,<EOL>vertex2+i*self.num_vertices<EOL>]))<EOL><DEDENT><DEDENT>return Graph(new_edges, self.num_vertices*repeat)<EOL>
Construct a graph that repeats this graph a number of times

           Arguments:
            | ``repeat`` -- The number of repetitions.