Graphs

18 flashcardsby Maria
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
In a graphical depiction of a graph, what does a vertex represent?
Circle
2
In a graphical depiction of a graph, what does an edge represent if it’s unidirectional?
Arrow
3
In a graphical depiction of a graph, what does an edge represent if it’s bidirectional?
Line
4
What two components make up a graph?
Vertices and edges
5
What are vertices that are connected by an edge called?
Adjacent
6
What is a graph called if it has a value for each edge?
Weighted
7
What is a graph called if its edges are depicted with arrows?
Directed graph
8
What is a graph called if its edges are depicted with lines?
Undirected
9
What is a graph called if the path between any two vertices is 1?
Complete
10
What are two ways to internally represent graphs?
Adjacency list and adjacency matrix
11
In an adjacency list, is space reserved for edges that do not exist?
  • TRUE
  • FALSE
12
Does an adjacency matrix use less memory than an adjacency list?
  • FALSE
  • TRUE
13
Using an adjacency list, do you need to search the entire list to determine if an edge exists between two given vertices?
  • TRUE
  • FALSE
14
In an adjacency matrix, can you use an edge weight of infinity to represent no edge between two vertices?
  • TRUE
  • FALSE
15
Are all graphs trees but not all trees graphs?
  • FALSE
  • TRUE
16
Can vertices in a graph have only one topological order?
  • FALSE
  • TRUE
17
In a weighted graph, does the shortest path between two vertices have the largest edge-weight sum?
  • FALSE
  • TRUE
18
Is a topological order possible for a graph that has a cycle?
  • TRUE
  • FALSE
Study all 18 cards for free