Hey, I have been reading about graphs and trees. I have read the different types of trees such as; AVL/ red/black and splay trees etc.
However, I'm just not getting graphs? How would I go about writing an un-weighted graph? Should an adjacency matrix/ list be used? How would I go about implementing this. Should it be able to add a new node? or add an edge?
Could someone show me an example code to write an un-weighted graph using adjacency?