Skip to content

C++ implementation for finding maximum clique in an undirected graph using greedy method Bron–Kerbosch algorithm.

Notifications You must be signed in to change notification settings

rpritr/max-clique-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaxClique

C++ implementation for finding maximum clique in an undirected graph:

  • greedy method
  • Bron–Kerbosch algorithm

Usage:

Graph g(PATH);

Clique c(g); c.findGreedyMaxClique();

Clique d(g); d.findBronKerboschMaxClique();

Methods

Graph g(PATH);

g.printGraphMatrix(); // print adjacency matrix

g.printGraphStats(); // print graph statistics

g.printEdgeList(); // print edge list

Input format

Each line represents an edge between two nodes

0 0

0 1

1 2

2 3

3 4

2 4

Run the program

make && ./maxclique

About

C++ implementation for finding maximum clique in an undirected graph using greedy method Bron–Kerbosch algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published