def hypercube_graph(n):
 dim = (n * [2])
 G = grid_graph(dim)
 G.name = ('hypercube_graph_(%d)' % n)
 return G

def hypercube_graph ( n ) : dim = ( n * [ 2 ] ) G = grid_graph ( dim ) G . name = ( 'hypercube_graph_(%d)' % n ) return G
return the n-dimensional hypercube .