| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
- 알고리즘
- string
- 포인터
- Python
- programming
- array
- baekjoon
- Data Science
- 함수
- OOP
- assignment operator
- predictive analysis
- Object Oriented Programming
- 오블완
- raw data
- 티스토리챌린지
- function
- C++
- const
- vscode
- 문자열
- Pre-processing
- 반복문
- 배열
- 파이썬
- pass by reference
- pointer
- 백준
- Class
- Deep Learning
- Today
- Total
Channi Studies
[Data Structure] Directed Graphs 본문
[Data Structure] Directed Graphs
Chan Lee 2025. 5. 26. 14:24A directed graph, or digraph, consists of vertices connected by directed edges.
A directed edge is a connection between a starting vertex and a terminating vertex. In a directed graph, a vertex Y is adjacent to a vertex X, if there is an edge from X to Y.
Many graphs are directed, like those representing links between web pages, maps for navigation, or college course prerequisites.

From above digraph, Tucson is adjacent to Los Angles; Dellas is adjacent to Tucson.
In a directed graph:
- A path is a sequence of directed edges leading from a source vertex to a destination vertex.
- A cycle is a path that starts and ends at the same vertex. A directed graph is cyclic if the graph contains a cycle, and acyclic if the graph doesn't contain a cycle.

A vertex's degree is defined by the sum of the number of outgoing and incoming edges.
For example, vertex B's degree from above acyclic digraph is 2 (incoming) + 1 (outgoing) = 3.
'Data Science > Data Structure & Algorithm' 카테고리의 다른 글
| [Data Structure] Python: Graphs (0) | 2025.05.27 |
|---|---|
| [Data Structure] Weighted Graphs (0) | 2025.05.26 |
| [Data Structure] Graphs: Breadth-first Search / Depth-first Search (0) | 2025.05.26 |
| [Data Structure] Graphs: Intro, Adjacency Lists, Adjacency Matrices (0) | 2025.05.26 |
| [ADT] Set - 3 | Python Implementation (0) | 2025.05.15 |