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([vertex1+i*self.num_vertices, vertex2+i*self.num_vertices]))<EOL><DEDENT><DEDENT>new_numbers = np.zeros((repeat, len(self.numbers)), int)<EOL>new_numbers[:] = self.numbers<EOL>new_numbers = new_numbers.ravel()<EOL>new_orders = np.zeros((repeat, len(self.orders)), int)<EOL>new_orders[:] = self.orders<EOL>new_orders = new_orders.ravel()<EOL>if self.symbols is not None:<EOL><INDENT>new_symbols = self.symbols*repeat<EOL><DEDENT>else:<EOL><INDENT>new_symbols = None<EOL><DEDENT>return MolecularGraph(new_edges, new_numbers, new_orders, new_symbols)<EOL>
Construct a graph that repeats this graph a number of times

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