Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:15:14+00:00 2026-05-30T04:15:14+00:00

I have set of nodes and edges and i used Dijkstra’s algorithm to find

  • 0

connected graphI have set of nodes and edges and i used Dijkstra’s algorithm to find the shortest closed cycles.My cycles are connected to each other (small black cycles in the graph). that mean, for 2 cycles, there is a common edge. Now, I want to get the Most outer cycles (red cycle in the figure), which contains all the shortest cycles. I think this is a kind of union. Not sure. is there any specific method or algorithmic method to obtain the most outer cycle from the available shortest closed cycles within the graph? How would be implement this?

Here, i tag the question under c++ also, as most programmers do know how to get the union of connected cycles and i also wish to implement this in c++. thank you in advance.

I have edited and upload a figure to my original post, as this was not clear for others.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:15:16+00:00Added an answer on May 30, 2026 at 4:15 am

    As I understand your question, you’re trying to find an edge-maximal face of a connected planar graph. There’s an algorithm for enumerating faces of a planar graph in the Boost library: Planar Face Traversal. You may use it to iterate over graph’s faces and find the one with most edges involved.

    Notes:

    • This will really only work for planar graphs
    • For many graphs, the solution is not unique, consider graph of a regular polyhedron – here, all faces have the same degree, so it’s not well defined which one of them is the ‘outer cycle’ you’re looking for

    regular polyhedron graph example (Attribution: Tomruen at en.wikipedia)

    • What ‘face with most edges involved’ means is different for graphs which are 2-connected and which are not. If it is not 2-connected, there will be “branches” reaching into some of the faces, and by definition, the same face lies on both sides of such a branch. Depending on your liking/needs you may either count such edges into the length of the face or omit them, getting different results.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a set of radio nodes in close proximity to each other and
I have a set of nodes that define streets. Each node has latitude and
I have a tree structure where each Node has a parent and a Set<Node>
I have set of flat files (114 files) each file is named with database
I'm writing an application that uses Dijkstra algorithm to find minimal paths in the
I have a directed graph with millions of vertices and edges. A set of
I have next code that represents graph edges and nodes (simplified for question): public
Suppose you have a set of nodes. Some nodes are producers, some are consumers,
I have a set of nodes (about 200) that need to have their url
I have parent/child relationship set up via Node Reference. A Child record can have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.