简体   繁体   中英

Find minimum weight for disconnection between two nodes in a undirected graph

I want to get minimum weight for disconnection between two particular nodes in a undirected graph. Each nodes and edges in the graph have their own weight.

Those two nodes could be disconnected by deleting some weight in many different ways. So, I want to get minimum value of deleted weight for disconnection.

In the below example, I want to get minimum weight for disconnection between Lidcombe and Redfern and the result is 2. Example of graph

I tried to build an algorithm but failed so I beg your help. Thank you.

https://web.williams.edu/Mathematics/sjmiller/public_html/hudson/Eusden_maxflowmincut.pdf starts with a nice historical version of this problem. During the cold war, working out the most efficient way to disconnect East Germany from the Soviet Union if war broke out. The answer suggested here is to use max-flow/min-cut by running the Ford-Fulkerson algorithm. The disconnection you want is specified by the min cut.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM