Basic Graph Algorithms Vertex (Node): A fundamental unit of a graph, representing an entity (e.g., a person in a social network, a city in a transportation network).
Edge: A connection between two vertices, representing a relationship (e.g., a friendship, a road between cities).