SLIDE 5 7
node edge communication telephone, computer fiber optic cable circuit gate, register, processor wire mechanical joint rod, beam, spring financial stock, currency transactions transportation street intersection, airport highway, airway route internet class C network connection game board position legal move social relationship person, actor friendship, movie cast neural network neuron synapse protein network protein protein-protein interaction molecule atom bond 17 / 28
39
node directed edge transportation street intersection
web web page hyperlink food web species predator-prey relationship WordNet synset hypernym scheduling task precedence constraint financial bank transaction cell phone person placed call infectious disease person infection game board position legal move citation journal article citation
pointer inheritance hierarchy class inherits from control flow code block jump 18 / 28
Weighted vs. Unweighted Graphs
A B C D E F G Unweighted A B C D E F G
10 4 1 7 5 8 19 4 10 6 8
Weighted In weighted graphs, each edge (or vertex) of G is assigned a numerical value, or weight The edges of a road network graph might be weighted with their length, drive-time or speed limit In unweighted graphs, there is no cost distinction between various edges and vertices
19 / 28
Simple vs. Non-simple Graphs
A B C D E F G Simple A B C D E F G Non-simple Certain types of edges complicate the task of working with graphs. A self-loop is an edge (x, x) involving only one vertex. An edge (x, y) is a multi-edge if it occurs more than once in the graph. Any graph without self-loops and multi-edges is called simple. Which of the earlier example graphs can be non-simple?
20 / 28