12.07.2015 Views

enumeration of the number of spanning trees in some ... - Toubkal

enumeration of the number of spanning trees in some ... - Toubkal

enumeration of the number of spanning trees in some ... - Toubkal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.4. Distance <strong>in</strong> <strong>trees</strong> and graphs 39Def<strong>in</strong>ition 1.4.1 (Walk) A walk is a sequence <strong>of</strong> edges v 1 v 2 , v 2 v 3 , ..., v n−1 v n which arenot necessarily dist<strong>in</strong>ct (unless <strong>the</strong> walk is a path). In this case we say that <strong>the</strong> walk isfrom v 1 to v n <strong>of</strong> length n − 1.Def<strong>in</strong>ition 1.4.2 (Distance) The distance between two dist<strong>in</strong>ct vertices v i and v j <strong>of</strong>a graph G, denoted by d(v i , v j ) is equal to <strong>the</strong> length <strong>of</strong> <strong>the</strong> shortest path (<strong>number</strong> <strong>of</strong>edges <strong>in</strong>) that connects v i and v j (<strong>the</strong> least length between v i and v j ). Conventionally,d(v i , v i ) = 0. If G has a u, v-path, <strong>the</strong>n <strong>the</strong> distance from u to v, written d G (u, v) or simplyd(u, v), is <strong>the</strong> least length <strong>of</strong> a u, v-path. If G has no such path, <strong>the</strong>n d(u, v) = ∞ [87].The distance between two vertices v and u, written d(v, u), is <strong>the</strong> length <strong>of</strong> <strong>the</strong>shortest walk from v to u, if it exists, o<strong>the</strong>rwise let d(v, u) = ∞. Note that <strong>the</strong> shortestwalk is necessarily a path. Fur<strong>the</strong>rmore, <strong>in</strong> a weighted graph, d(v, u) is understood to be<strong>the</strong> m<strong>in</strong>imum total weights <strong>of</strong> all possible walks from v to u.Def<strong>in</strong>ition 1.4.3 (Weight) The weight, denoted by p(v i , v j ) is <strong>the</strong> <strong>number</strong> <strong>of</strong> edges thatconnects v i with v j .We use <strong>the</strong> word "diameter" due to its use <strong>in</strong> geometry, where it is <strong>the</strong> greatest distancebetween two elements <strong>of</strong> a set.Def<strong>in</strong>ition 1.4.4 (Diameter) The diameter <strong>of</strong> a graph G is def<strong>in</strong>ed as <strong>the</strong> maximum <strong>of</strong><strong>the</strong> set <strong>of</strong> all shortest walks jo<strong>in</strong><strong>in</strong>g any two vertices, i.e.,Diam(G) = max{d(v, u)|v, u ∈ V }.For example diam(G) = 1 if and only if G is complete but <strong>the</strong> diameter <strong>in</strong> a plane tree is<strong>the</strong> <strong>number</strong> <strong>of</strong> edges <strong>of</strong> <strong>the</strong> longest path. Note also that diam(G) = ∞ if and only if G isdisconnected.Example 1.4.5 The diameter <strong>of</strong> <strong>the</strong> graph below is 2 (see Figure. 1.24). This is becausefor any vertex not directly connected to ano<strong>the</strong>r, <strong>the</strong>re is a path <strong>of</strong> length two connect<strong>in</strong>g<strong>the</strong> two. By look<strong>in</strong>g at <strong>the</strong> graph, it can be seen that this is true.Figure 1.24: An example <strong>of</strong> a graph G whose diameter is 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!