Often data isn’t quite right and must be cleaned or transformed into a graph. Python is an excellent programming tool for programming novices (and even experts) to quickly create some code to manipulate graph data. Examples in the first part of the chapter include cleaning data—extracting nodes from a data set with only links, and extracting both nodes and links from a data set not organized as a graph (for example, e-mail).
If you’ve ever done any programming, Python is quick to learn, has a straightforward syntax, and is fairly forgiving. Python provides ...