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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:41:15+00:00 2026-06-14T07:41:15+00:00

I have a directed weighted graph G, with V vertices and E edges. Given

  • 0

I have a directed weighted graph G, with V vertices and E edges. Given two nodes in the graph, let’s say A, and B, and given the weight of an edge A-B denoted as w(A, B), I need to find a node C so that max(w(A, C), w(B, C)) is minimal among all possibilities. By possibilities I mean all the values C can take. I don’t know if it is completely clear, if it’s not, I’ll try to be more precise.

  • 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-14T07:41:17+00:00Added an answer on June 14, 2026 at 7:41 am

    If by w(A, C) you really mean just the weight of an edge, then check all the nodes directly connected to A in turn, for total cost at worst the size of the graph, which is about as good as you could expect, assuming that you always need to read in the graph.

    If by w(A, C) you mean the cost of the least cost path from A to C note that most path-finding algorithms, like http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm, in fact calculate the cost of the least cost path from A to every other node. You can solve your problem by looking at each node in turn if you have both the costs of getting from A to each node and the costs of getting from each node to B.

    So do one run to work out the costs from A to every other node, then reverse the edges in the node and do another run to work out the least cost path from B to every other node in the reversed graph. Then for each node you have the cost of the least cost w(A, C) and the least cost w(C, B) so you can check each node in turn to see which is the best.

    If your graph contains cycles, then you need something like http://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm. If it has negative cycles, you are going to have a problem.

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

Sidebar

Related Questions

I have a weighted, directed graph which is dense with around 20,000 nodes. Given
I have a directed, positive weighted graph. Each edge have a cost of use.
Here is an excise: Let G be a weighted directed graph with n vertices
I have a directed graph with millions of vertices and edges. A set of
Let's say I have a large (several thousand node) directed graph G and a
I have a directed, weighted, complete graph with 100 vertices. The vertices represent movies,
Given a weighted graph (directed or undirected) I need to find the cycle of
I have a weighted graph with (in practice) up to 50,000 vertices. Given a
I have a connected directed weighted graph. The edge weights represent probabilities of moving
I have a directed graph with ~20 nodes that I need to have their

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.