Skip to content

Dominators and Dominator trees (migrated from Trac #692) #679

Closed

Description

@networkx-trac

Original ticket https://networkx.lanl.gov/trac/ticket/692
Reported 2012-02-21 by gpellegrino, assigned to @hagberg.

Hi all,

I have a directed graph G=(V,E) with source s \in V and sink t \in V. I'd need to calculate:

  1. the dominator tree of G, and
  2. the set of dominators of each n \in N where N \subseteq V

It would be great for me to have a little help on this from networkx.

Despite of the direct solution, there are two better approaches:

Also, I've found that the Boost libraries provide an implementation of the dominator tree calculated with the Lengauer Tarjan algorithm (http://www.boost.org/doc/libs/1_36_0/libs/graph/doc/lengauer_tarjan_dominator.htm).

BR,

Giancarlo

Activity

  1. networkx-trac commented on Jul 20, 2012

    @networkx-trac
    Author

    Comment in Trac by @hagberg, 2012-02-23

    What kind of help would you like?
    I didn't look at the paper carefully but there might be some code already in networkx that could be used in an implementation - see dfs_preorder, predecessors.

  2. networkx-trac commented on Jul 20, 2012

    @networkx-trac
    Author

    Comment in Trac by @hagberg, 2012-04-15

  3. ghost assigned on Dec 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions