Bipartite check
Can the players form two teams with every pair of rivals on opposite sides? A line connects rivals, and a color marks each team.
Give each new neighbor the opposite color. An edge between equal colors reveals a conflict. Try a square, then add a diagonal.
With adjacency lists, traversal takes O(V + E) time for V vertices and E edges.