The document discusses different ways to represent graphs in a computer's memory. Graphs can be represented using either an adjacency matrix or linked lists. An adjacency matrix uses an n x n matrix to represent a graph with n vertices, where entries mark connections between vertices. Linked list representation connects each vertex to its neighbors through pointers. Both directed and undirected graphs as well as weighted graphs can be modeled with these approaches.