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

  • Home
  • SEARCH
  • 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 8344781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:28:32+00:00 2026-06-09T06:28:32+00:00

I have two undirected weighted gaphs G1 and G2, with 2 common vertices C

  • 0

I have two undirected weighted gaphs G1 and G2, with 2 common vertices C and D between them.

Is it possible that the edge CD in G1 has weight 4 and in G2 same edge has weight 7?
If yes, what will be the union of these graphs?

enter image description here

  • 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-09T06:28:33+00:00Added an answer on June 9, 2026 at 6:28 am

    Okay let me try my best to remember my graph theory here…

    The answer would be yes, and the resultant graph would be something like

             3
        A---------B
        |    4    |
      5 | _______ |  8
        |/       \|
        D---------C
        \    7   /
         \      /
        6 \    / 5
           \  /
            \/
             E
          G1 U G2
    

    Where the vertices D and C have two edges between them

    c(DC) = 4 and c(DC') = 7

    where c is the path cost function.

    You seem to be asking whether a union on these two graphs is possible. The answer is yes, you can always perform the union operation on graphs, just as you can intersection (its just like set theory, think back to you first principle definitions of graphs, all they are are tuples containing sets of vertices and edges).

    Its not that the ‘edge’ DC some how simultaneously has the weight of 4 and of 7, its that their are two distinct edges running between DC, one with a weight of 4 and another with the weight of 7. If you were to visualize these graphs as representing city maps, the weighted path of 4 would be the ‘quicker’ divided highway, while the higher cost path of 7 would be a city avenue.

    Hope that sheds some light on the issue.

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

Sidebar

Related Questions

I have a class that represents undirected edges in a graph. Every edge has
I have two XML files. The first XML has a bunch of nodes that
I have two Generic Lists with the same objects Type T within them. For
Have two UIBarButtonItems want to make it as one UIBarButtonItem and toggle between them
Have two tables with a linking table between them. USERS +-------+---------+ | userID| Username|
I have two DataGridViews that have the same column schema (although two different DataViews
I have several nodes (undirected graph, bidirecional) ... Each two nodes have a distance...
I have two columns say Main and Sub . (they can be of same
I have two tables, lets say table1 and table2 with common columns, id and
I have two inputs with the same date, but i want to separate the

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.