subgraphsearch-core
Find induced subgraphs with a given number of vertices and edges: cliques, independent sets and everything in between. It also finds regular subgraphs and subgraphs of a given total weight in weighted graphs. The search is a randomized tabu search whose experiments run in parallel, with results that depend only on the seed.
This is the library behind the subgraphsearch command
and the Python package. It also has random graph
generators, graph operations (complement, induced subgraphs, common neighborhoods, Seidel
switching), and readers and writers for graph6, sparse6, Matrix Market, edge lists, DOT and
GraphML.
use ;
// find induced 4-vertex paths (3 edges) in a 12-cycle
let g = from_edges.unwrap;
let result = search.unwrap;
let found = result.experiments.iter.find.unwrap;
assert_eq!;
SearchParams sets the number of experiments and moves, fixed vertices, a regular-subgraph
target and the other settings. The project README
explains how the search works and how to choose its settings.
Licensed under the MIT license.