Network robustness


活动地址:优快云21天学习挑战赛

Define

——网络的稳健性/鲁棒性

Network robustness:

the ability of a network to maintain its general structural properties when it faces failures or attacks

——网络在面临故障或攻击时保持其一般结构属性的能力

Type of attacks:

removal of nodes or edges

structural properties:(结构特性)

connectivity

——Robustness is going to be the network’s ability to maintain its connectivity

And so you would like for the transportation network to be robust to closures of airports, so that the general connectivity or the general function of the network is still maintained even after it might have lost one particular airport.

——因此,您希望交通网络对机场关闭具有鲁棒性,以便网络的一般连通性或一般功能即使在可能失去一个特定机场后仍能保持。

Disconnecting a Graph

Undirected Graph

What is the smallest number of nodes that can be removed from this graph in order to disconnect it?

nx.node_connectivity(G_un)
#>>1
'''And it says that if I just remove one node, I would be able to disconnect the graph completely.'''

nx.minimum_node_cut(G_un)
#>>{'A'}
'''切除A结点就能得到不连通的图'''

What is the smallest number of edges that can be removed from this graph in order to disconnect it?

nx.edge_connectivity(G_un)

nx.minimum_edge_cut(G_un)

Directed Graph

在这里插入图片描述

Simple Paths

Imagine node G wants to send a message to node L by passing it along to other nodes in this network

sorted(nx.all_simple_paths(G,source='G',target='L'))

Node Connectivity

If we wanted to block the message from G to L by removing nodes from the network, how many nodes would we need to remove?

nx.node_connectivity(G,'G','L')
#>>2
'''至少要删除两个点'''

nx.minimum_node_cut(G,'G','L')
#>>{'N','O'}

Edge Connectivity

If we wanted to block the message from G to L by removing edges from the network, how many nodes would we need to remove?

nx.edge_connectivity(G,'G','L')
#>>2

nx.minimum_edge_cut(G,'G','L')
#>>{('A','N'),('J','O')}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Caaaaaan

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值