401 class 35 notes
Graphs Quiz
- What are vertices also called?
- What is a connection between two nodes called?
- What are nodes connected via an edge called?
- The number of edges connected to a vertex is called the ___ of a vertex.
- What is a graph that does not move in any direction called?
- What is a graph called when every edge is directed?
- What is a graph called when all nodes are connected to all other nodes?
- What is a graph called when all of the vertices have at least one edge?
- What is a graph called when some vertices do not have edges?
- When a node can be traversed through and potentially end up back at itself, this is called ___.
- Graphs can be represented through two things: adjacency ___ and adjacency ___.
- What is a graph called when it has numbers assigned to its edges?
- There are two types of graph traversals: __ first and __ first.
- Which traversal uses a Queue to visit all children at a given level?
- Which traversal uses a Stack to visit all children of a given subtree?
Extra Credit: name one real world use for a graph.
Answer key:
vertex, edge, neighbor, degree, undirected, directed, complete, connected, disconnected, a cycle, matrix, list, weighted, depth, breadth, breadth first, depth first.