Skip to content

Week 4 : maximal planar#573

Open
Mohit242-bit wants to merge 9 commits into
pgRouting:mohit-2026-maximal-planarfrom
Mohit242-bit:week4-maximal-planar
Open

Week 4 : maximal planar#573
Mohit242-bit wants to merge 9 commits into
pgRouting:mohit-2026-maximal-planarfrom
Mohit242-bit:week4-maximal-planar

Conversation

@Mohit242-bit

@Mohit242-bit Mohit242-bit commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Week 4 PR creation
plan:
-maximal pgtap tests adding
-Disconnected components input logic

Copilot AI review requested due to automatic review settings June 14, 2026 07:31
@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7731c0cb-a66b-40f4-8415-52ad9c2ef87b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the planar “maximal planar” functionality by removing the unused biconnected-planar enum/dispatch and changing pgr_makeMaximalPlanar to handle disconnected graphs by processing each connected component independently.

Changes:

  • Remove BICONNECTEDPLANAR from the Which enum and related name mapping.
  • Update Pgr_makeMaximalPlanar::makeMaximalPlanar() to split disconnected inputs into connected subgraphs and run maximal-planar generation per component.
  • Remove the previous “graph must be connected” exception from the internal generation routine.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/cpp_common/utilities.cpp Removes BICONNECTEDPLANAR name mapping from get_name(Which).
include/planar/makeMaximalPlanar.hpp Implements per-connected-component processing for maximal planar generation and removes the prior connectivity exception.
include/c_common/enums.h Removes BICONNECTEDPLANAR from the Which enum.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread include/planar/makeMaximalPlanar.hpp
…lean dispatcher

Component splitting logic belongs in the algorithm layer (.hpp), not the shared
driver. This ensures future planar algorithms (planarFaces, straightLineDrawing)
that join the shared driver are not forced to inherit component-splitting behavior
they may not want. Each algorithm decides its own disconnected-graph strategy.
@Mohit242-bit Mohit242-bit force-pushed the week4-maximal-planar branch from 65c4894 to 814a0c7 Compare June 14, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants