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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:34:51+00:00 2026-05-27T23:34:51+00:00

I have a large network, about 400 nodes, and what I’m trying to do

  • 0

I have a large network, about 400 nodes, and what I’m trying to do is calculate every possible route you can make on the network. That means, the nodes traversed and the total weighting of the route from Node 1 to Node 2, Node 1 to Node 3 up to Node 1 to Node 400.

Then, from Node 2 to Node 3, Node 2 to Node 4 up to Node 2 to Node 400.

(Just FYI, I have very limited knowledge of python, day to day I work with HTML/CSS)

I’ve been using this code that I discovered: http://bytes.com/topic/python/insights/877227-dijkstras-algorithm-finding-shortest-route

Which is great, however, due to the size of my network, calculating every possible way to go from any node to any node takes a very, very long time.

From what I understand of the algorithm I linked to, it visits each node in turn from the start node, and gives it a value which is the weighting required to get to that node from the start (I imagine it also records the route required to get to each specific node?). If it finds a shorter route to get to that node it overwrites what it had before. Once it gets to the destination it stops and returns the result.

I figure, if the script can be edited slightly, can it instead of stopping at a specific destination, just visit all the nodes as it usually would and print out a report of the shortest route and weighting to each one? That way, the algorithm would only have to be run a total of 400 times, once for each possible starting position.

Thanks for any advice you can give and I hope that was clear!

  • 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-27T23:34:52+00:00Added an answer on May 27, 2026 at 11:34 pm

    You can use the Python graph module NetworkX which has methods for all pairs shortest paths (weighted and unweighted). And they are optimized in the sense that they use the best known algorithms for such tasks.

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

Sidebar

Related Questions

I have to dump a large database over a network pipe that doesn't have
I'm currently monitoring a large network with Hobbit and have been tasked with lowering
I'm designing an application which will have a network interface for feeding out large
I have large batches of XHTML files that are manually updated. During the review
I have large video files (~100GB) that are local on my machine. I have
I have an ASP.NET application that does a large database read. It loads up
I have a pretty large social network type site I have working on for
I have been trying for about an hour now to find an elegant solution
I have this problem: I have a collection of small files that are about
I have a larger network about 1000 pcs on LAN I need to know

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.