Explain Graph Representation Algorithm Steps