Chapter 8

Understanding Graph Basics

IN THIS CHAPTER

Bullet Defining why networks are important

Bullet Demonstrating graph drawing techniques

Bullet Considering graph functionality

Bullet Using numeric formats to represent graphs

Graphs are structures that present a number of nodes (or vertexes) connected by a number of edges or arcs (depending on the representation). When you think about a graph, think about a structure like a map, where each location on the map is a node and the streets are the edges. This presentation differs from a tree where each path ends up in a leaf node. A tree could look like an organizational chart or a family hierarchy. Most important, tree structures actually do look like trees and have a definite start and end. This chapter begins by helping you understand the importance of networks, which are a kind of graph commonly used for all sorts of purposes.

Remember You can represent graphs in a variety of ways, most of them abstract. Unless you’re really good at visualizing abstractions in your ...

Get Algorithms For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.