Skip to content

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages