Skip to content

Commit 4160b22

Browse files
committed
feat: 그래프의 인터페이스, ADT 선언
1 parent 37d7f3d commit 4160b22

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package graph;
2+
3+
/**
4+
* 간단한 그래프 자료구조의 인터페이스
5+
*
6+
* @author dion
7+
*/
8+
public interface Graph {
9+
10+
/**
11+
* 매개변수 fromV와 toV로 전달된 정점을 연결하는 간선을 그래프에 추가합니다.
12+
*
13+
* @param fromV 시작하는 정점
14+
* @param toV 도달하는 정점
15+
*/
16+
void addEdge(int fromV, int toV);
17+
18+
/**
19+
* 그래프의 간선정보를 출력합니다.
20+
*/
21+
void showGraphEdgeInfo();
22+
}

0 commit comments

Comments
 (0)