@pimms.value<EOL><INDENT>def intersected_edges(edge_data):<DEDENT>
return pimms.imm_array([edge_data[<NUM_LIT:0>], edge_data[<NUM_LIT:1>]])<EOL>
path.intersected_edges is a (2 x n) matrix of edges that are crossed by the given path in
order along the path; each column (u,v) of the returned matrix gives one edge, given in
counter-clockwise order relative to path (i.e., u is always inside a closed path or on the
left side of an open path).