官术网_书友最值得收藏!

Working with Networks in NetworkX

The basic features of NetworkX are contained in several Python classes that represent different types of networks. In particular, this chapter discusses Graph, DiGraph, MultiGraph, and MultiDiGraph. These classes can be used to represent, analyze, and visualize most networks. In this chapter, you will learn to use these classes to work with real-world network data in NetworkX. The code examples in this and future chapters will assume that you have already imported the networkx package.

In this chapter, we will cover the following topics:

  • The Graph class: Understand the properties of undirected networks and how they are represented using the NetworkX Graph class.
  • Attributes: How to associate data with nodes and edges.
  • Edge weights: Learn how to quantify connection strength, and annotate edges with that information.
  • The DiGraph class: Understand the properties of directed networks and how they are represented using the NetworkX DiGraph class.
  • The MultiGraph and MultiDiGraph classes: Learn about networks with parallel edges.
主站蜘蛛池模板: 茶陵县| 会理县| 饶河县| 通城县| 罗城| 信丰县| 西林县| 水富县| 五河县| 政和县| 盐城市| 亳州市| 多伦县| 通河县| 甘南县| 中超| 宜良县| 廉江市| 寿阳县| 大埔区| 宾川县| 随州市| 邢台县| 綦江县| 新乡市| 石柱| 梁平县| 松桃| 临颍县| 桃园市| 恩平市| 黄龙县| 晋州市| 襄垣县| 凯里市| 遵化市| 镶黄旗| 新民市| 大姚县| 万全县| 太康县|