/graph-problems

An assorted collection of graph problems and solutions

Primary LanguagePython

Graph Problems

This repository contains solutions to various graph-related problems implemented in different programming languages.

Table of Contents

Introduction

Graph problems are fundamental in computer science and have wide applications in various domains. This repository serves as a collection of solutions to graph problems, providing implementations in different programming languages.

Feel free to explore the solutions, learn from them, and contribute your own solutions.

Folder Structure

The repository is organized into folders based on the problem being solved. Each language folder contains solutions to various graph problems.

Feel free to navigate to the problem of your choice and explore the solution in different programming languages.

List of Problems

  • Problem 1: RoadSystem convenience that checks if all nodes in the graph have the same number of incoming and outgoing edges

Each problem folder contains a detailed README explaining the problem, the approach used, and the code.

Contributing

If you have a new graph problem to add or want to contribute a solution in a different language, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature: git checkout -b feature-name.
  3. Implement the solution or add a new problem.
  4. Commit your changes: git commit -m "Add feature-name solution in language".
  5. Push to the branch: git push origin feature-name.
  6. Submit a pull request.

Feel free to open an issue if you have questions or suggestions.

License

This repository is licensed under the MIT License - see the LICENSE file for details.