Giter Club home page Giter Club logo

graph-algorithms-visualization's Introduction

graph-algorithms-visualization

Graph algorithms visualization made using olcPixelGameEngine (Visual Studio 2015 Project)

Currently supported algorithms:

  • Prim-Jarnik MST
  • Kruskal MST
  • Boruvka MST
  • Prim-Jarnik MST maze generation
  • Kruskal MST maze generation
  • Boruvka MST maze generation
  • DFS
  • BFS
  • Dijkstra
  • A*

Dijkstra's algorithm - Maze solving example

A* algorithm - Maze solving example

DFS algorithm - Maze solving example

BFS algorithm - Maze solving example

Kruskal algorithm visualization example

"Kruskal algorithm visualization"

Prim-Jarnik algorithm visualization example

"Prim-Jarnik algorithm visualization"

Boruvka algorithm visualization example

"Boruvka algorithm visualization example"

Kruskal MST maze generation example

"Kruskal MST maze generation"

Prim-Jarnik MST maze generation example

"Prim-Jarnik MST maze generation"

Boruvka MST maze generation example

"Boruvka MST maze generation"

Controls

Press Enter to move to the next frame of the animation.
If you want animation to be played automatically, set USER_ANIMATION_CONTROL macro to 0 (defined in Main.cpp).
To generate a maze, set DRAW_MAZE macro to 1 (by default it is 0) and, optionally, configure maze parameters (MAZE_GRAPH_VERTICES, VERTEX_SCALE).
To control the speed of the animation, set TIME_BETWEEN_FRAMES macro to desired value (in seconds).
To change which algorithm will be used for MST (or maze generation), set m_Type attribute of the GraphAlgorithms class to desired value.
To change which algorithm will be used for maze solving, set m_PathType attribute of the GraphAlgorithms class to desired value.

License

This program is free.
You can redistribute it and/or change it under the terms of GNU General Public License version 3.0 (GPLv3).
You can find a copy of the license in the repository.

graph-algorithms-visualization's People

Contributors

dusanerdeljan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.