Skip to content

lucasdsolivera/graph-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bionexo Challenge

This a Java application focused on Graph Problem, to solve this problem was used the depth first search algorithm and some search variations methods.

How to install

  1. Download the project using git clone:
        $  git clone git@github.com:lucasdsolivera/graph-challenge.git
  1. Go to project directory:
	$ cd graph-challenge
  1. Excecute:
	$ mvn install
  1. Excecute:
	$ mvn exec:java -Dexec.mainClass="bionexo.graphchallenge.app.GraphChallengeApplication"

You can also import and save files from GitHub and add the Maven Project to your IDE to execute main class

  1. Input the Graph as String:
        $ AD4, DE1, EC8, CB2, BA6, AC9, DF7, FC5, FE9, BD3, FA3

The expected output is:

Output #1: 5
Output #2: NO SUCH ROUTE
Output #3: 10
Output #4: 19
Output #5: 5
Output #6: 3
Output #7: 6
Output #8: 2
Output #9: 5
Output #10: 6
Output #11: 27
Output #12: 137

Tech

This application uses only:

  • [Java] - Java 8
  • [Maven] - Version 4.0.0
  • [Junit] - Version 4.12

Todos

  • Find a better way to print results
  • Create package printer and move the ExamplePrinter class
  • Refactor GraphService class
  • Write more tests

Author

Lucas Oliveira

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages