forked from eggy/eifueo
ece250: add node terminology
This commit is contained in:
parent
f2b0832dd8
commit
e9cf2d9edf
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user