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 7826753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:33:33+00:00 2026-06-02T09:33:33+00:00

i Need an algorithm for merging or joining to graphs, by this I mean

  • 0

i Need an algorithm for merging or joining to graphs, by this I mean that the last node of graph 1 should be predecesor of first node of graph 2.
Graph 1:

1->2->3
   \ /
    4->5

Graph 2:

6->7
   | \
   8->9

This is what I need:

1->2->3
   \ /
    4->5->6->7
             | \
             8->9
  • 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-06-02T09:33:34+00:00Added an answer on June 2, 2026 at 9:33 am

    createNewGraph
    iterate graph 1 and add new graph
    iterate graph 1
    for each node iteratesuccessors
    for each edge between these nodes add to the new graph

    iterate graph 2 and add new graph
    iterate graph 2
    for each node iteratesuccessors
    for each edge between these nodes add to the new graph

    add edge from last node of graph 1 to firstnode of graph 2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write an algorithm that reads keyboard stream until it gets a
I need a cross-platform library/algorithm that will convert between 32-bit and 16-bit floating point
I need an algorithm that allows me to determine an appropriate <priority> field for
I need an algorithm that can do a one-to-one mapping (ie. no collision) of
I need an algorithm that takes an unsorted array of axis aligned rectangles and
I need an algorithm that identifies all possible combinations of a set of numbers
I have certain algorithm need to implement. Basically the rules are: The first whitespace-separated
I have the following string: 0000015700 I need an algorithm that does the following:
I need an algorithm that calculates dates that are between two days of the
I need an algorithm that can give me positions around a sphere for N

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.