Explain Graph Representation Algorithm