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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:13:27+00:00 2026-05-19T02:13:27+00:00

I am looking for a bit of help with some work I have. The

  • 0

I am looking for a bit of help with some work I have.

The task is to create a London Underground journey planner.

Edit:-

At the moment I have an adjacency list of nodes with edge data in a HashTable.

I want to find a way to use Breadth-First searching to get a shortest path between any two vertices.

The vertices are connected logically as the tube map looks. Each station’s edge is represent by using: (this_station, next_station, tube_line) <- this is the info I have about each station.

Traversing this is quite tricky. Any help seriously appreciated!

  • 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-19T02:13:27+00:00Added an answer on May 19, 2026 at 2:13 am

    This is a classic graph theory problem. You can represent your stops as nodes, and your connections between stops as edges.

    To directly answer your question, I believe the best way to represent segments of lines into a single line would be to make a graph which represents all lines. You can tag your edges with a data flag (or set of flags) to represent which line(s) the nodes belong to. Ultimately, regardless of lines, stations and segments, this is a graph. If you are interested in representing these concepts, the way I would recommend storing them would be as attributes of nodes (or edges).

    If you are interested in removing these edges, you can iteratively remove edges which are purely intermediate. So, if A->B->C, and B has no other connections, you could remove B and add it’s B->C weight to the A->C weight.

    Using a graph representation will allow you to apply existing shortest-path algorithms to your problem.

    Good luck!

    -Brian J. Stinar-

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

Sidebar

Related Questions

I'm in a bit of a predicament and I'm looking for some help on
my robotics lab is looking for programmers to work on some projects we have
I need some help. I'm looking to have a sidebar that toggles when a
Been looking around a bit and I can't seem to find any help on
I have a report model looking a bit like this: class Report(models.Model): date =
Looking to do a bit of refactoring... Using NHibernate I have this query currently
I am looking for some help autosaving tinyMCE. I want to save the content
I need some help tracking down a bit of nitty gritty information on the
Would really appreciate some help with this. I have an app which consists of
I am looking for a bit of help. I realize there are many threads

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.