DS09_Ch09a - CHAPTER 9 GRAPH ALGORITHMS 1 Definitions G V E...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CHAPTER 9 GRAPH ALGORITHMS §1 Definitions G( V, E ) where G ::= graph, V = V( G ) ::= finite nonempty set of vertices, and E = E( G ) ::= finite set of edges. Undirected graph: ( v i , v j ) = ( v j , v i ) ::= the same edge. Directed graph (digraph): < v i , v j > ::= < v j , v i > v i v j tail head Restrictions : (1) Self loop is illegal. (2) Multigraph is not considered 0 1 0 1 2 Complete graph: a graph that has the maximum number of edges 0 2 1 3 2 ) 1 ( 2 E of # V of # - = = = n n n C n 0 2 1 3 ) 1 ( E of # V of # 2 - = = = n n P n n 1/7
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
v i v j v i and v j are adjacent ; ( v i , v j ) is incident on v i and v j v i v j v i is adjacent to v j ; v j is adjacent from v i ; < v i , v j > is incident on v i and v j Subgraph G’ G ::= V( G’ ) V( G ) && E( G’ ) E( G ) Path ( G) from v p to v q ::= { v p , v i 1 , v i 2 , ⋅ ⋅ ⋅ , v in , v q } such that ( v p , v i 1 ), ( v i 1 , v i 2 ), ⋅ ⋅ ⋅ , ( v in , v q ) or < v p , v i 1 >, ⋅ ⋅ ⋅ , < v in , v q > belong to E( G ) Length of a path ::= number of edges on the path Simple path
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/20/2011 for the course COMPUTER S 10586 taught by Professor Jilinwang during the Spring '09 term at Zhejiang University.

Page1 / 7

DS09_Ch09a - CHAPTER 9 GRAPH ALGORITHMS 1 Definitions G V E...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online