Back to marketplace

Graph traversal

No description yet. This curated deck is ready for daily study.

Total cards: 12•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (12)

#1
Front (Question)

What are the 2 components of graphs?

Back (Answer)

Nodes and Edges

#2
Front (Question)

Define a graph

Back (Answer)

An abstract data type used to represent complex, non linear relationships between objects

#3
Front (Question)

What is a neighbour?

Back (Answer)

2 nodes connected by an edge

#4
Front (Question)

What is the degree of a node?

Back (Answer)

The number of other nodes it’s connected too

#5
Front (Question)

What is a loop?

Back (Answer)

An edge that connects a node to itself

#6
Front (Question)

What is a path?

Back (Answer)

A sequence of nodes connected by edges

#7
Front (Question)

What is a cycle?

Back (Answer)

A closed path- starts and ends at the same nodes and no node is visited more than once

#8
Front (Question)

Examples of what a graph can represent

Back (Answer)

Social network, Transport network. the internet

#9
Front (Question)

What is an undirected graph?

Back (Answer)

A graph that allows you to move in either direction between nodes

#10
Front (Question)

How to tell if a graph is undirected?

Back (Answer)

The edges have no arrows

#11
Front (Question)

What is a directed grah?

Back (Answer)

The edges have directions so you can only move between nodes in specified directions

#12
Front (Question)

What is a weighted graph?

Back (Answer)

The edges have values used to record information