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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:00:26+00:00 2026-05-27T00:00:26+00:00

I am using a terminal client to interact with a mainframe computer. The entire

  • 0

I am using a terminal client to interact with a mainframe computer. The entire interface is based on the concept of screens. An example workflow might look like:

  • Login Screen: enter login credentials, press enter
  • Menu Screen: enter the number of the menu item you want (lets say “6” for memos), press enter
  • Memo Screen: enter account number, press enter
  • Add Memo Screen: enter memo details, etc, press enter to save, F3 to go back

I have written a python application to automate the processing of records through this terminal interface. One of the difficulties I am having is that there are a lot of different screens and my application right now is pretty dumb about how to get from one screen to another. It can go from the login screen, to adding memos. But, if it finds itself on the memo screen and needs to de-activate an account, it has to logout and login again because it only knows how to get to the deactivation screen from the login screen, not from the add memos screen.

So, I would like to create a “map” in my application that links each screen to the screens that are “next” to it. Then, I need an algorithm that could tell how to get from any screen A to any screen B in the shortest manner possible.

I already have some screen objects setup and have “related” them to the screens next to them. So, I am looking for some kind of algorithm that I can implement or python library that I can use that will do the work of calculating the route from one screen to another.

Edit: I realize that I am looking for some kind of shortest-path graph algorithm. What is currently throwing me is that I don’t really have a “distance”, I just have nodes. So, I really don’t want shortest-distance, I want least-nodes.

  • 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-27T00:00:26+00:00Added an answer on May 27, 2026 at 12:00 am

    Since I am using an unweighted graph, it looks like the simplest approach is going to be Breadth-first search:

    http://en.wikipedia.org/wiki/Breadth-first_search

    Edit: I found a library which does everything I need:

    http://networkx.lanl.gov/reference/generated/networkx.algorithms.shortest_paths.generic.shortest_path.html

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

Sidebar

Related Questions

Using Terminal.app on OS X 10.5, often you see the commands get garbled when
I have a software that runs on mac (using terminal program) the program is
I'm looking for a solution to convert a set of files using the terminal
How can you compile the code using javac in a terminal by using google-collections
I am using bash in os X Terminal app, and my custom $PS1 breaks
The post summarizes problems in using Screen in Mac's terminal when you have the
I'm using PuTTY to access my BSD file server and I have several terminal
I'm trying to download a folder using wget on the Terminal (I'm usin a
Is there a way to launch a gnome-terminal from the command line (i.e., using
I have an open socket to a remote terminal. Using the answer to Force

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.