An ant starts at a vertex, and walks along the edges of a cube. The ant is allowed to cross an edge more than once. What is the largest number of edges that the ant can walk along?