Skip to content

Commit

Permalink
Add forward decl
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph-Edwards committed Sep 4, 2024
1 parent 9662219 commit fda50e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gap/planar.gi
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ function(D)
local v, e;
v := DigraphNrVertices(D);
e := DigraphNrAdjacenciesWithoutLoops(D);
if HasIsPlanarDigraph(D) then
return IsPlanarDigraph(D);
fi;
if v < 5 or e < 9 then
return true;
elif (IsConnectedDigraph(D) and e > 3 * v - 6)
Expand Down
3 changes: 3 additions & 0 deletions src/planar.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
#pragma GCC diagnostic pop
#endif

// Forward declaration of the main function in this file.
Obj trivial_planarity_output(Int V, bool krtwsk);

// Forward declaration of the main function in this file.
Obj boyers_planarity_check(Obj digraph, int flags, bool krtwsk);

Expand Down

0 comments on commit fda50e8

Please sign in to comment.