graphs Flashcards
subgraph
part of the original graph
spanning tree
a subgraph which includes all of the vertices of the original graph
walk
route through graph from on vertex to the next along edges
path
a walk in which no vertex is visited more than once
trail
no edges visited more than once
cycle
a walk that starts and ends at the same vertex and no other vertex is visited more than once
node’s degree (odd or even)
the number of edges attached to it
Hamiltonian cycle
a cycle that includes every vertex
eulerian cycle
a trail that traverses every arc (once) and starts and ends at the same vertex
tree
connected graph with no cycles
graph
points /vertices/nodes
connected by
lines/edges/arcs
connected graph
a path can be found between any two vertices
loop
an edge which starts and ends at the same vertex
what’s a simple graph?
no loops
(there aren’t multiple edges connecting the same two vertices)
diagraph/directed graoh
edges have a given direction