Factored out printing of all edges in cell into helper function in test.cpp