- Directly check for vertices with two edge neighbors instead of looping - Use arrays of C++ types as return values - Use lambda to avoid repetition for each edge vertex - Use `edge_other_vert` utility
- Directly check for vertices with two edge neighbors instead of looping - Use arrays of C++ types as return values - Use lambda to avoid repetition for each edge vertex - Use `edge_other_vert` utility