Algorithm for Finding Redundant Edges in a Graph or Tree

前端 未结 6 787
忘掉有多难
忘掉有多难 2020-12-24 08:35

Is there an established algorithm for finding redundant edges in a graph?

For example, I\'d like to find that a->d and a->e are redundant, and then get rid of them,

6条回答
  •  旧巷少年郎
    2020-12-24 09:07

    You want to compute the smallest graph which maintains vertex reachability.

    This is called the transitive reduction of a graph. The wikipedia article should get you started down the right road.

提交回复
热议问题