Skip to content

Commit 652ecfc

Browse files
committed
Graphs Introduction & Type of Graphs
1 parent b9ac2e8 commit 652ecfc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

33-Graphs_(Part-I)/GraphsP1.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
public class GraphsP1 {
2+
public static void main(String[] args) {
3+
/*
4+
* Introduction --------------------------------
5+
* Graphs -> Network of Vertices (Nodes)
6+
* Ex:
7+
* 1 4 —— 9
8+
* \ / \
9+
* 6 3 —— 8
10+
* \
11+
* 12
12+
*
13+
* Single node -> Vertex
14+
* Connection to node -> Edge
15+
*
16+
* Type Of Graphs (Based on Edge) --------------------------------
17+
* Direction ---
18+
* 1. Uni-Directional (Directed Graph)
19+
* Ex: A ⇾ B
20+
* 2. Un-Directed / Bi-Directional (Undirected Graph)
21+
* Ex: A — B
22+
* A ←→ B
23+
*
24+
* Weight ---
25+
* 1. Weighted
26+
* Ex: Weight of Edge = +ve & -ve
27+
*
28+
* 2. Un-Weighted
29+
* Ex: Weight of Edge = None
30+
*/
31+
32+
}
33+
}

33-Graphs_(Part-I)/code.java

Whitespace-only changes.

0 commit comments

Comments
 (0)