Implement graph as adjacency list

A graph is a data structure that consists of a set of nodes connected by edges. Graphs are used to simulate many real-world problems, such as paths in cities, circuit networks, and social networks. This post is to implement graph as adjacency list. Table of Content Terminology Add node and edge Remove …