- Network Science with Python and NetworkX Quick Start Guide
- Edward L. Platt
- 211字
- 2021-06-24 15:18:51
Directed networks
Sometimes, it helps to add just a little more detail to a network. The edges we've seen so far don't have any sense of coming from or going to; they are simply connections between two nodes, so they are called symmetric or undirected.
Imagine a network that represents a system of roads (edges) and intersections (nodes). A network with undirected edges would be a good representation, until you came across a one-way street. An undirected edge suggests that you can travel in either direction equally well, while in reality, driving against traffic is likely to be a rather different experience from driving with it.
When direction matters, a network is called directed. In a directed network, each edge has a source node and a target node. Typically, the edge represents a flow of some kind, for example, traffic, from the source to the target. But what if not all connections are one-way? Easy! Two-way connections are made by combining two directed edges going in opposite directions. In directed networks, edges are drawn with arrows pointing toward the target, as shown in the following diagram. In NetworkX, directed networks are represented by the DiGraph class, also described in Chapter 2, Working with Networks in NetworkX:

- 大數(shù)據(jù)技術與應用基礎
- 人工智能超越人類
- 網(wǎng)上沖浪
- Mastering Salesforce CRM Administration
- Docker High Performance(Second Edition)
- ESP8266 Home Automation Projects
- Apache Superset Quick Start Guide
- 愛犯錯的智能體
- 云原生架構進階實戰(zhàn)
- Learning Azure Cosmos DB
- 內(nèi)模控制及其應用
- 基于Xilinx ISE的FPAG/CPLD設計與應用
- 人工智能技術入門
- Mastering Exploratory Analysis with pandas
- 簡明學中文版Flash動畫制作