Skip to content

structures/

Discrete structures and graph algorithms.

Graph algorithms: connectivity, shortest paths, spanning trees, BFS and DFS <structures/algorithms/traversal.hpp>

structures::bfs – structures::connected_components – structures::dfs – structures::dijkstra – structures::is_connected – structures::minimum_spanning_tree

Concepts for discrete structures: union-find, priority queues and graphs <structures/concepts.hpp>

concepts::addressable_priority_queue – concepts::equivalence_relation – concepts::incidence_structure – concepts::weighted_incidence

Bucket priority queue by integer degree <structures/containers/degree_queue.hpp>

structures::basic_degree_queue – structures::degree_queue – structures::degree_queue_32

Union-find with path compression and union by rank <structures/containers/disjoint_set.hpp>

basic_disjoint_set – disjoint_set – disjoint_set_32

Indexed binary heap <structures/containers/indexed_priority_queue.hpp>

indexed_priority_queue – max_indexed_pq – min_indexed_pq

Exact and sampled clique elimination (star-mesh transform) on multigraphs <structures/graph/clique.hpp>

structures::add_exact_clique – structures::collect_neighbors – structures::sample_biclique_tree – structures::sample_clique – structures::sample_clique_tree

Graph generators: paths, cycles, grids, complete, star, random trees and \(G(n, p)\) <structures/graph/generators.hpp>

structures::complete_graph – structures::cycle_graph – structures::erdos_renyi – structures::grid_2d – structures::path_graph – structures::random_spanning_tree – structures::star_graph

Weighted graph as an adjacency list <structures/graph/graph.hpp>

graph

Weighted multigraph with edge multiplicities <structures/graph/multigraph.hpp>

structures::multi_edge – structures::multigraph – structures::to_multigraph

Implicit graph of a uniform Cartesian grid <structures/graph/structured_grid.hpp>

structured_grid_graph