Skip to content
/ mcs Public

Finding maximum common subgraph and minimum common supergraph of two graphs

Notifications You must be signed in to change notification settings

lkawka/mcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Finding maximum common subgraph and minimum common supergraph of two graphs

The goal of this project is to find a maximal common subgraph and a minimum common supergraph of two graphs. These problems are not trivial as they are both NP-hard. The maximum common subgraph problem has many definitions in the literature. This project uses the one commonly known as a maximum common induced subgraph, where we want to maximize the number of vertices of the common induced subgraph. Analogously, we want to minimize the number of vertices of the common supergraph for the minimum common supergraph problem. Input graphs are undirected, unweighted, and connected.

There are two solutions:

  • Exact - implementation of the McSplit algorithm
  • Approximate - implementation of a genetic algorithm

The program is a console-based application. There are two implementations. At one point, Java implementation (mcs-java) was abandoned and migrated to C# (Mcs-cs), which was further developed.

About

Finding maximum common subgraph and minimum common supergraph of two graphs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published