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

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.
主站蜘蛛池模板: 郁南县| 五寨县| 兴宁市| 迁西县| 长兴县| 齐河县| 湛江市| 凯里市| 家居| 文水县| 锡林郭勒盟| 高邮市| 全椒县| 普洱| 玉门市| 云阳县| 宁都县| 武邑县| 石林| 新兴县| 扬州市| 定兴县| 黔江区| 朝阳县| 贡觉县| 麻江县| 焦作市| 广灵县| 麦盖提县| 青神县| 黄骅市| 郓城县| 武山县| 句容市| 江津市| 秦安县| 内丘县| 崇礼县| 苏州市| 萍乡市| 赤壁市|