tan
0.0.1
|
Public Member Functions | |
void | add_dependency (T depended, T dependent) |
dependent depends on depended More... | |
std::pair< std::optional< vector< T > >, std::optional< T > > | topological_sort () const |
Sort topologically so for no element is dependent on its succeeding element(s). More... | |
int | num_dependent (T depended) const |
Number of nodes that depends on depended . More... | |
int | num_depended (T dependent) const |
Number of nodes that dependent depends on. More... | |
void | clear () |
Definition at line 11 of file dependency_graph.h.
|
inline |
dependent
depends on depended
Definition at line 16 of file dependency_graph.h.
|
inline |
Number of nodes that dependent
depends on.
Definition at line 92 of file dependency_graph.h.
Referenced by tanlang::DependencyGraph< T >::topological_sort().
|
inline |
Number of nodes that depends on depended
.
Definition at line 80 of file dependency_graph.h.
|
inline |
Sort topologically so for no element is dependent on its succeeding element(s).
Definition at line 29 of file dependency_graph.h.
References tanlang::DependencyGraph< T >::num_depended().