BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_Graph_bfs.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_FN_GRAPH_BFS_HPP
13#define BELFEM_FN_GRAPH_BFS_HPP
14
15#include "typedefs.hpp"
16#include "cl_Cell.hpp"
17#include "cl_Graph_Vertex.hpp"
18
19namespace belfem
20{
21 namespace graph
22 {
23//------------------------------------------------------------------------------
24
26 bfs( Graph & aGraph, Vertex * aStart );
27
28 // can also handle non-connected graphs
30 bfs( Graph & aGraph );
31
32//------------------------------------------------------------------------------
33 }
34}
35#endif //BELFEM_FN_GRAPH_BFS_HPP
Graph node with an adjacency list; the vertex type the graph algorithms operate on.
Definition cl_Graph_Vertex.hpp:32
Definition cl_Graph_Vertex.cpp:21
index_t bfs(Graph &aGraph, Vertex *aStart=nullptr)
Definition fn_Graph_bfs.cpp:23
USER GUIDES:
Definition cl_Capacitor.cpp:16
Cell< graph::Vertex * > Graph
Definition cl_Graph_Vertex.hpp:329
uint32_t index_t
Definition typedefs.hpp:52