ece250: add node terminology

This commit is contained in:
eggy 2023-11-07 13:53:26 -05:00
parent f2b0832dd8
commit e9cf2d9edf

View File

@ -149,3 +149,12 @@ fn sort(A: Vec) {
} }
} }
``` ```
## Graphs
!!! definition
- A **vertex** is a node.
- The **degree** of a node is the number of edges connected to it.
- A **connected graph** is such that there exists a path from any node in the graph to any other node.
- A **connected component** is a subgraph such that there exists a path from any node in the subgraph to any other node in the subgraph.
- A **tree** is a connected graph without cycles.