the graph can nearly solve any type of complex problem where we have a relationship between data sets.
1. social networks like Facebook friends relationships etc.
2. worldwide web where each page is connected to each other.
few other problems can be solved using graphs check out the below link
https://jeremykun.com/tag/games-on-graphs/
some really nice videos on the graph
--------------------------------------------------------------------------------------------------------------------------------
https://www.youtube.com/watch?v=gXgEDyodOJU
type of graph
1. Graph Representation part 01 - Edge List
https://www.youtube.com/watch?v=ZdY1Fp9dKzs
2. Graph Representation part 02 - Adjacency Matrix
https://www.youtube.com/watch?v=9C2cpQZVRBA
3. Graph Representation part 03 - Adjacency List
https://www.youtube.com/watch?v=k1wraWzqtvQ&t=3s
I implement a small graph class in c++ for basic use the code is below
check out the code below
https://www.onlinegdb.com/edit/0hjVzLk7C
Comments
Post a Comment