Network Science with Python and NetworkX Quick Start Guide
上QQ阅读APP看书,第一时间看更新

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system." 

A block of code is set as follows:

G_karate = nx.karate_club_graph()
mr_hi = 0
john_a = 33

When code produces text output, that text output is set in bold:

list(nx.all_shortest_paths(G_karate, mr_hi, john_a))
[[0, 8, 33], [0, 13, 33], [0, 19, 33], [0, 31, 33]]

Bold: Indicates a new term or an important word. For example: "Statements that refer to themselves are called self-referential."

Warnings or important notes appear like this.
Tips and tricks appear like this.