![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <DirectedGraph.h>
Public Types | |
| using | NodeId = int32_t |
Public Member Functions | |
| NodeId | AddNode (const InElementType &Item) |
| NodeId | AddNode (InElementType &&Item) |
| bool | AddDirectedEdge (const NodeId From, const NodeId To) |
| bool | AddDirectedEdgeUnique (const NodeId From, const NodeId To) |
| void | Reserve (int32_t NodesSlack, int32_t EdgesSlack=0) |
| void | Empty (int32_t NodesSlack=0, int32_t EdgesSlack=0) |
| int32_t | NumNodes () const |
| const InElementType & | operator[] (NodeId Index) const |
| InElementType & | operator[] (NodeId Index) |
| bool | TopologicalSort (TArray< InElementType > &OutItems) const |
| bool | TopologicalSort_Pointers (TArray< const InElementType * > &OutItems) const |
| bool | TopologicalSort_Pointers (TArray< InElementType * > &OutItems) |
| TArray< TArray< NodeId > > | FindCycles () const |
Static Public Attributes | |
| static constexpr NodeId | InvalidNodeId = uLang::IndexNone |
Friends | |
| struct | TDiGraphTopologicalIterator_Base< InElementType > |
| using uLang::TDirectedGraph< InElementType >::NodeId = int32_t |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| TArray< TArray< typename TDirectedGraph< InElementType >::NodeId > > uLang::TDirectedGraph< InElementType >::FindCycles | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| bool uLang::TDirectedGraph< InElementType >::TopologicalSort | ( | TArray< InElementType > & | OutItems | ) | const |
| bool uLang::TDirectedGraph< InElementType >::TopologicalSort_Pointers | ( | TArray< const InElementType * > & | OutItems | ) | const |
| bool uLang::TDirectedGraph< InElementType >::TopologicalSort_Pointers | ( | TArray< InElementType * > & | OutItems | ) |
|
friend |
|
staticconstexpr |