Skip to content

Commit

Permalink
Add mult-digraph check
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph-Edwards committed Sep 4, 2024
1 parent 53eb0f8 commit 14d930c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/planar.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ Obj boyers_planarity_check(Obj digraph, int flags, bool krtwsk) {
(Int) TNAM_OBJ(digraph),
0L);
}
if (CALL_1ARGS(IsMultiDigraph, digraph) == True) {
ErrorQuit("expected a digraph without multiple edges!", 0L, 0L);
}
Obj const out = FuncOutNeighbours(0L, digraph);
Int V = DigraphNrVertices(digraph);
Int E = 0;
Expand Down

0 comments on commit 14d930c

Please sign in to comment.