Conventions used
There are a number of text conventions used throughout this book.
Code in text
: 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: “This script shows that average subgraph centrality varies between the two subfamily trees, with Greenberg’s average subgraph centrality of 2.478
and Dimmendaal’s average subgraph centrality of 3.276
.”
A block of code is set as follows:
#compare subgraph centrality of language families gs=nx.subgraph_centrality(G) print(np.mean(np.array(list(gs.values())))) gs2=nx.subgraph_centrality(G2) print(np.mean(np.array(list(gs2.values()))))
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “When you hover over the Movie DBMS label on the right-hand side of the screen, you’ll see a Start button that launches the connection to this database. Click on Start.”
Tips or important notes
Appear like this.