Skip to content

planarity-4.x compatibility #741

Open
@orlitzky

Description

@orlitzky

There's a new version of planarity out:

The headers have been moved around a bit, causing the digraphs build to fail when an external libplanarity (4.x) is used. Here's the lazy version of the patch:

--- a/src/planar.c
+++ b/src/planar.c
@@ -38,10 +38,7 @@
 #include "c/graphK33Search.h"
 #include "c/graphK4Search.h"
 #else
-#include "planarity/graph.h"
-#include "planarity/graphK23Search.h"
-#include "planarity/graphK33Search.h"
-#include "planarity/graphK4Search.h"
+#include "planarity/graphLib.h"
 #endif
 #if defined(__clang__)
 #pragma clang diagnostic pop

No other changes are required though, so it should be possible to support both versions by trying both sets of headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gap-days-brussels-2025Label for things we might work on in Brussels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions