Function breadth_first_order
Defined in File calculate_configurations.hpp
Function Documentation
-
std::vector<int> breadth_first_order(std::vector<std::vector<int>> adjacency_matrix, int start_index)
Returns the nodes reachable from
start_idxin BFS order.This function performs a breadth-first search (BFS) on the adjacency matrix.
- Parameters:
adjacency_matrix – The adjacency matrix representing the graph.
start_index – The index of the starting node.