OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
TopoSort.hpp
Go to the documentation of this file.
1
19#ifndef OPENSWMM_TOPOSORT_HPP
20#define OPENSWMM_TOPOSORT_HPP
21
22#include <vector>
23
24namespace openswmm {
25
26struct SimulationContext;
27
28namespace toposort {
29
43int sortLinks(const int* node1, const int* node2,
44 int n_links, int n_nodes,
45 std::vector<int>& sorted_links);
46
47} // namespace toposort
48} // namespace openswmm
49
50#endif // OPENSWMM_TOPOSORT_HPP
int sortLinks(const int *node1, const int *node2, int n_links, int n_nodes, std::vector< int > &sorted_links)
Sort links in topological (upstream→downstream) order.
Definition TopoSort.cpp:17
Definition Controls.cpp:24