What is a graph in the context of computer science?

2025

What is a graph in the context of computer science?

  1. A.

    A data structure that consists of nodes connected by edges

  2. B.

    A pictorial representation of statistical data

  3. C.

    A mathematical function

  4. D.

    None of the above

Attempted by 396 students.

Show answer & explanation

Correct answer: A

In the context of computer science, a graph is a data structure that is defined as a set of nodes (vertices) connected by edges.

Explore the full course: Cocubes Preparation