Published online by Cambridge University Press: 05 June 2012
Functions are born of functions, and in turn, give birth or death to others. Forms emerge from forms and others arise or descend from these
L. SullivanYou have already seen the use of graph-theoretic terminology in connected component labeling in Chapter 8. The way we used the term “connected components” in the past was to consider each pixel as a vertex in a graph, and think of each vertex as having four, six, or eight edges to other vertices (that is, four-connected neighbors, six neighbors if hexagonal pixel is used, and eight-connected neighbors). However, we did not build elaborate set-theoretic or other data structures there. We will do so in this chapter. The graph-matching techniques discussed in this chapter will be used a great deal in Chapter 13.
Graphs
A graph is a relational data structure. It consists of data elements, referred to as vertices or nodes, and relationships between vertices, referred to as edges.
Graphs may be completely described by sets. The set of vertices is a simple set, and the edges form a set of ordered pairs. For example, let G = 〈V, E〉 represent a graph, where the vertex set V = {a, b, c, d, e, f} and the edge set E = {(a, b), (b, c), (a, c), (b, e), (d, f)}. Graphs may also be represented pictorially.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.