Learn C++ Online

An introduction to graphs

On this page
This lesson contains approximately 25 minutes of video content.

Sets

Graphs

Some types of graphs and their properties

How do graphs prove useful?

Questions

1

QIntroduction to Graphs, Q1

This question is ungraded.

Given the following graph,

what are the corresponding vertex v and edge e sets?

2

QIntroduction to Graphs, Q2

This question is ungraded.

Given the following directed graph,

what are the corresponding vertex v and edge e sets?

3

QIntroduction to Graphs, Q3

This question is ungraded.

What is the difference between a simple graph and a multigraph?

4

QIntroduction to Graphs, Q4

This question is ungraded.

How many vertices are required for a cycle in a simple graph?

5

QIntroduction to Graphs, Q5

This question is ungraded.

Suppose we are modeling a social network of friends as an undirected graph whose vertices are people and edges denote friendship, as mentioned in the lecture video. Given the following undirected graph,

which of the choices below make an incorrect statement about the graph?