Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

depth-first-search-step

I present here a Java based demonstration of the Depth First Search algorithm.

The algorithm itself is implemented in Java. Javascript is used for initialization and display only.

The search itself is step-by-step, each Ajax request resulting in a new vertex discovery executed on server side.

When the search is completed all edges are colored according to the DFS edge classification:

Blue for Tree edges Green for Forward edges Red for Backward edges Black for Cross edges

Launching the demo

To launch the demo run the command mvn spring-boot:run in project directory. When the application has started open a browser and hit URL localhost:8080/depth-first-search.

Here are some screen shots that can be seen during the demo:

Graph initialized alt text

alt text

alt text

For video demo of this project follow this link: https://youtu.be/xfqG61aiECo

For an animated version of this algorithm please visit this repository:

https://github.com/dubersfeld/depth-first-search-anim

Dominique Ubersfeld, Cachan, France

About

Java based demonstration of Depth First Search algorithm using HTML5 Canvas, Javascript and AJAX.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.