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
24
namespace
openswmm
{
25
26
struct
SimulationContext;
27
28
namespace
toposort {
29
43
int
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
openswmm::toposort::sortLinks
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
openswmm
Definition
Controls.cpp:24
src
engine
hydraulics
TopoSort.hpp
Generated by
1.9.8