Based on directions, graphs can be of two types: directed and undirected. Let's review both of them briefly.