开发者

Negative weight graph edges? [closed]

开发者 https://www.devze.com 2023-04-08 16:32 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. 开发者_运维知识库 Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.
开发者_运维知识库

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

We all have seen graphs with edge weight where the weight may represent anything from

lengths, costs, etc ..., but what does a negative weight edge stand for ?

e.g lengths my apply to road lengths in real world, is there a similar analogy for negative weight ?

Thanx


Imagine that your graph is tracking the molecules that are consumed and produced in a chemical reaction and the edge weights represent the energy produced in the transition. A negative edge weight would be a transition that needs energy to be achieved (for example splitting water into hydrogen and oxygen).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号