logo资料库

Network Science with Python and NetworkX Quick Start Guide.pdf

第1页 / 共275页
第2页 / 共275页
第3页 / 共275页
第4页 / 共275页
第5页 / 共275页
第6页 / 共275页
第7页 / 共275页
第8页 / 共275页
资料共275页,剩余部分请下载后查看
Title Page
Copyright and Credits
Network Science with Python and NetworkX Quick Start Guide
Dedication
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
What is a Network?
Network science
The history of network science
Network science today
What is a network?
Nodes and edges
Visualizing networks
What is NetworkX?
Types of networks
Directed networks
Weighted networks
Understanding edges
Social networks
Flow networks
Similarity networks
Spatial networks
Your first network in NetworkX
Summary
References
Working with Networks in NetworkX
The Graph class – undirected networks
Adding attributes to nodes and edges
Adding edge weights
The DiGraph class – when direction matters
MultiGraph and MultiDiGraph – parallel edges
Summary
References
From Data to Networks
Modeling your data
Reading and writing network files
Creating a network with code
Summary
References
Affiliation Networks
Nodes and affiliations
Affiliation networks in NetworkX
Projections
Summary
References
The Small Scale - Nodes and Centrality
Centrality – finding key nodes
Bridges, brokers, and bottlenecks – betweenness centrality
Hubs – eigenvector centrality
Closeness centrality
Local clustering
Summary
References
The Big Picture - Describing Networks
The global structure of networks
Datasets
Diameter and mean shortest path
Global clustering
Measuring resilience
Minimum cuts
Connectivity
Centralization and inequality
Summary
References
In-Between - Communities
Communities – networks within networks
Community detection in NetworkX
Modularity maximization
Visualizing
An online social network
Girvan-Newman – betweenness-based communities
Cliques
K-cores
Summary
References
Social Networks and Going Viral
Social networks
Strong and weak ties
Tie strength
Bridge span
Comparing strength and span
The small world problem
Ring networks
A real social network
Random networks
Watts-Strogatz networks
Contagion – how things spread
Simple contagion
Complex contagion
Summary
References
Simulation and Analysis
Watts-Strogatz and small worlds
Preferential attachment and heavy-tailed networks
Configuration models
Agent-based models
Summary
References
Networks in Space and Time
Locations and events
Networks in space
Gravity models
Working with spatial data
Gravity model for air travel
Residual network
Network properties
Networks in time
Layered networks
Working with time data
The evolution of network properties
Summary
References
Visualization
Beyond the hairball
The circular layout
The shell layout
The force-directed layout
Null models
Summary
Conclusion
The practice of network science
Learning more
Advances in network science
The impact of network science
Appendix
Adjacency matrices
Biadjacency matrices
Modularity
Other Books You May Enjoy
Leave a review - let other readers know what you think
Network Science with Python and NetworkX Quick Start Guide Explore and visualize network data effectively Edward L. Platt 2
BIRMINGHAM - MUMBAI 3
Network Science with Python and NetworkX Quick Start Guide Copyright © 2019 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Commissioning Editor: Amey Varangaonkar Acquisition Editor: Sandeep Mishra Content Development Editor: Smit Carvalho Technical Editor: Diksha Wakode Copy Editor: Safis Editing Project Coordinator: Kinjal Bari Proofreader: Safis Editing Indexer: Tejal Daruwale Soni Graphics: Alishon Mendonsa Production Coordinator: Jyoti Chauhan First published: April 2019 Production reference: 1250419 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78995-531-6 www.packtpub.com 4
To Mr. G. and Chiz, and to all teachers who support students in following unusual paths. 5
mapt.io Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website. 6
Why subscribe? Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals Improve your learning with Skill Plans built especially for you Get a free eBook or video every month Mapt is fully searchable Copy and paste, print, and bookmark content 7
Packt.com Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details. At www.packt.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks. 8
分享到:
收藏