Professional Documents
Culture Documents
Unit 3 - Session 4
Unit 3 - Session 4
𝑣1 𝑒2
𝑒1 𝑣2
C. P. S. Pathirana.
Senior Lecturer
Department of Mathematics & Philosophy of Engineering.
The Open University of Sri Lanka.
Definition 4.1
𝑣1 𝑣2 𝑣5
𝑣4
The Open University of Sri Lanka 8/6/2022 3
11.2 Matrix representation
1 ; 𝑒𝑗 𝑖𝑠 𝑖𝑛𝑐𝑖𝑑𝑒𝑛𝑡 𝑜𝑢𝑡 𝑜𝑓 𝑣𝑖
−1 ; 𝑒𝑗 𝑖𝑠 𝑖𝑛𝑐𝑖𝑑𝑒𝑛𝑡 𝑖𝑛𝑡𝑜 𝑣𝑖
𝑎𝑖𝑗 =
0 ; 𝑒𝑗 𝑖𝑠 𝑛𝑒𝑖𝑡ℎ𝑒𝑟 𝑖𝑛𝑐𝑖𝑑𝑒𝑛𝑡 𝑜𝑢𝑡 𝑛𝑜𝑟 𝑖𝑛𝑡𝑜 𝑣𝑖
2 ; 𝑣𝑖 𝑖𝑠 𝑎𝑑𝑗𝑎𝑐𝑒𝑛𝑡 𝑡𝑜 𝑖𝑡𝑠𝑒𝑙𝑓 𝑏𝑦 𝑒𝑗
𝑣3
𝑒3 𝑒4
𝑣1 𝑒2
𝑒1 𝑣2
The Open University of Sri Lanka 8/6/2022 6
11.3 In-degree and Out-degree
Definition 4.3
Let 𝐺 be a digraph (or a multi-digraph) and
𝑣∈𝑉 𝐺 .
• The number of edges (arcs) incident out of 𝑣
is called the out-degree of 𝒗 and it is
denoted by 𝐝𝐞𝐠 + (𝒗).
• The number of edges (arcs) incident into 𝑣 is
called the in-degree and it is denoted by
𝐝𝐞𝐠 − (𝒗)
Then total degree,
𝐝𝐞𝐠 𝒗 = 𝐝𝐞𝐠 + 𝒗 + 𝐝𝐞𝐠 − (𝒗)
8/6/2022 7
The Open University of Sri Lanka
Example
𝑣3
𝑒3 𝑒4
𝑣1 𝑒2
𝑒1 𝑣2
𝑣3
𝑒3 𝑒4
𝑣1 𝑒2
𝑒1 𝑣2
σ𝑣∈𝑉(𝐺) deg + 𝑣 = 1 + 2 + 1 = 4
σ𝑣∈𝑉(𝐺) deg − 𝑣 = 1 + 2 + 1 = 4
𝑣2 𝑣9
𝑣1 , 𝑣4 , 𝑣5 , 𝑣6 , 𝑣7 is the shortest path between 𝑣1
and 𝑣7 .
𝑑𝑖𝑠𝑡 𝑣1 , 𝑣7 = 4.
The Open University of Sri Lanka 8/6/2022 12
Thank You