Giter Site home page Giter Site logo

rbga / shortest-cyclical-path-planning-for-aircraft-routes-using-python-jupyter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 341 KB

Shortest Cyclical Path Planning for Aircraft Routes using Python - Jupyter. Depth First Search coupled with Random Search was used to plot the shortest cyclical routes for all aircraft origin points to their destination points.

License: MIT License

adjacency-list data-analysis data-extraction data-visualization depth-first-search excel-file-handling flight-routing graph-algorithms network-analysis numpy-functions

shortest-cyclical-path-planning-for-aircraft-routes-using-python-jupyter's Introduction

Aircraft Network Analysis with Python

Image Alt Text

This project focuses on analyzing aircraft networks using Python and various libraries like Pandas, Openpyxl, Numpy, and Matplotlib. The project aims to extract data from an Excel file, build an adjacency list representation of aircraft networks, perform Depth First Search (DFS) on the networks, and visualize the results.

Note: The original Jupyter Notebook containing the code and detailed results is not available in this repository as it was deleted before uploading to Git. However, you can view the PDF file in the repository to get an overview of the code and results.

Table of Contents

Introduction

The project uses Python to analyze aircraft network data and perform network-related operations. The main tasks include:

  • Reading aircraft network data from an Excel file.
  • Constructing an adjacency list representation of the aircraft networks.
  • Performing Depth First Search (DFS) on each aircraft's network.
  • Visualizing the results with plotted graphs.

Dependencies

To run this project, you need to have the following Python libraries installed:

  • Pandas
  • Openpyxl
  • Numpy
  • Matplotlib

Install the required libraries using the following command:

pip install pandas openpyxl numpy matplotlib

Data Extraction

The data is extracted from the 'dat.xlsx' file, which contains information about aircraft networks. The 'Origin City' and 'Destination City' columns are extracted and stored in separate variables for further analysis.

Adjacency List Creation

The project creates an adjacency list representation of the aircraft networks using the extracted 'Origin City' and 'Destination City' data. The Graph class is used to create and store the adjacency list for each aircraft/fleet.

Depth First Search (DFS)

Depth First Search is applied to each aircraft's network to traverse the nodes and generate results for each fleet.

Results

The results of the Depth First Search (DFS) for all 25 aircraft fleets are stored in a DataFrame and saved to an Excel file named 'data.xlsx'.

Visualization

The project utilizes Matplotlib to visualize the aircraft network results. The Depth First Search (DFS) results for each aircraft are plotted and displayed as graphs.

Please note that you need the 'dat.xlsx' file containing the aircraft network data in the same directory as this notebook to run the code successfully.

Feel free to explore the PDF file and experiment with the aircraft network analysis in Python!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.