Skip to content

Repository files navigation

Lab 2 Graph Basics: graph traversals

This project implements and visualizes core graph algorithms using the GraphStream library in Java.
It corresponds to Lab 2: Graph Basics from the Interconnection: from dynamic graphs to social networks course.

Project Structure

Interconnection_Lab2/
└── graph-lab2/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── pl/uni/graphs/
│ │ │ ├── App.java
│ │ │ ├── Tools.java
│ │ │ └── TraversalAlgorithms.java
│ │ └── resources/
│ │ └── dgs/
│ │ ├── firstgraphlab2.dgs
│ │ ├── gridvaluated_10_12.dgs
│ │ ├── gridvaluated_10_220.dgs
│ │ ├── gridvaluated_30_120.dgs
│ │ ├── gridvonneumann_30.dgs
│ │ └── randomgnp_50_0.05.dgs
├── screenshots/ │ ├── ex1.png
│ ├── ex2.png
│ ├── ex3.png
│ ├── ex4.png
│ ├── ex5-1.png
│ ├── ex5-2.png
│ └── ex6.png
├── lab-2-graph-basics.pdf
├── README.md
├── pom.xml
└── .gitignore

Main Classes

ClassPurpose
App.javaRuns all exercises sequentially with visualizations.
Tools.javaHelper functions for graph reading, styling, and coordinate management.
TraversalAlgorithms.javaImplements BFS, DFS, Dijkstra, and eccentricity computations.

Screenshots

Exercise 1Exercise 2
Exercise 3Exercise 4
Exercise 5 (1)Exercise 5 (2)
Exercise 6

Lab Instructions

Open lab-2-graph-basics.pdf

Author

Oliwia Witkowska

Cardinal Stefan Wyszyński University (UKSW)

About

Solution for Lab 2 Interconnection: from dynamic graphs to social networks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages