Skip to content

MariannaSpyrakou/Digraphs_modular_decomposition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Digraphs_modular_decomposition

#Given a directed graph computes its modular decomposition.

Step 1: (function: find_sym_struct())

   Given graph G, compute the undirected graphs: 
   Gs: edge (u,v) is in Gs iff edge (u,v) or (v,u) is in G
   Gd: edge (u,v) is in Gd iff edge (u,v) and (v,u) is in G
   H: edge (u,v)=0 if edge (u,v) is a non-edge
      edge (u,v)=1 if edge (u,v) is an edge in both Gs,Gd
      edge (u,v)=2 if edge (u,v) is an edge in Gs but not in Gd
      (H= Gs V Gd)

Step 2: Compute modular decomposition of Gs,Gd

Step 3: Find modular decomposition of T, T(H)=T(Gs) V T(Gd)

Step 4: Order the children of each 0-complete and 1-complete node

Step 5: Order the children of each 2-complete node

Step 6: The resulting leaf order is a factorizing permutation --> find modular decomposition

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages