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

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.
主站蜘蛛池模板: 太仓市| 那曲县| 永清县| 济阳县| 阳山县| 子洲县| 大姚县| 仁怀市| 岐山县| 平顶山市| 册亨县| 达州市| 三亚市| 富阳市| 双辽市| 阿合奇县| 泽库县| 安仁县| 仙游县| 伊金霍洛旗| 桐乡市| 离岛区| 项城市| 财经| 漯河市| 天峻县| 中方县| 夏河县| 伊通| 昌黎县| 苍山县| 甘洛县| 观塘区| 桃园县| 广西| 永丰县| 通山县| 南靖县| 天长市| 阳春市| 东兰县|