Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
What is Graph
course content

Course Content

Algorithms and Data Structures Overview

What is GraphWhat is Graph

A graph is a mathematical structure consisting of two sets called a set of vertices and a set of edges. The graph is denoted as G(V, E). Of course, vertices in a graph are connected by edges.

The edges and vertices of a graph can represent different entities. For example, in social networks, the vertices of a graph can represent people, and edges can represent relations between those people.

On the other hand, the vertices can represent street crossings, and the edges can represent the streets.

Also, we can assign a weight to an edge of a graph that will denote the cost of passing from one vertex to another by this edge.

As you saw above, graphs can be directed and undirected. It depends on the nature of the underlying task and which type of graph we should choose.

question-icon

What is a graph in the context of graph theory?

Select the correct answer

Everything was clear?

Section 4. Chapter 1
some-alt