Graphs Flashcards
What is a graph?
A set of vertices connected by edges.
What is a walk?
A set of edges joined end-to-end.
What is a trail?
A walk where no edges are repeated but vertices can be repeated.
What is a cycle?
A trail that starts and ends at the same vertex.
No vertices can be repeated.
What is a connected graph?
A graph where it is possible to get from any vertex to any other vertex.
What is a simple graph?
A graph with no loops or multiple edges.
What is a simple-connected graph?
A simple graph that is connected.
What is a complete graph?
A simple graph with the maximum possible number of edges.
How many edges does the complete graph with n vertices have?
0.5(n(n-1))
What is a bipartite graph?
Simple graph.
Partitioned into two sets.
No edge connects two vertices in the same set.
What is a complete bipartite graph?
A bipartite graph.
Each vertex is joined to each other vertex in the other set by 1 edge.
How many edges does the complete bipartite graph with m vertices in the first set and n vertices in the second set have?
mn edges
What does an adjacency matrix show?
The number of edges that directly connect each pair of vertices.
What property does an adjacency matrix have about the lead diagonal?
It is symmetrical around the lead diagonal.
For a simple graph, the lead diagonal is all 0’s.
What is the complement of a graph?
The set of edges that could be added to the graph to make it complete.