#3:
printing graph visualization (can be changed  to hash map for algorythm)