Computer scienceAlgorithms and Data StructuresData structuresGraphsGraphs: basics

Graph

Representation

Report a typo

What is a formal representation of the following graph?

Formal representation of  graph

Print a set of nodes and edges of the graph in the field below. The first line should contain node labels separated by spaces. Each of the following lines should contain an edge: two labels separated by spaces. For example, your output may look like this:

3 2 1 4 5
1 3
4 5
2 4
1 2
Enter a short text
___

Create a free account to access the full topic