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

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.
主站蜘蛛池模板: 德令哈市| 韩城市| 冀州市| 昌图县| 三都| 石楼县| 柏乡县| 贵定县| 湖州市| 旅游| 开阳县| 买车| 象山县| 红河县| 尤溪县| 南安市| 怀化市| 察雅县| 河北区| 海原县| 滕州市| 确山县| 商城县| 栖霞市| 双辽市| 恭城| 二连浩特市| 班戈县| 钦州市| 治县。| 罗甸县| 孟津县| 温州市| 子洲县| 蕉岭县| 嘉兴市| 广元市| 松滋市| 建平县| 翁源县| 永嘉县|