Quantum Algorithms visualized through graph