Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Containers
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/DirectedGraph.h |
| Include | #include "uLang/Common/Containers/DirectedGraph.h" |
Syntax
template<typename InElementType>
class TDirectedGraph
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddDirectedEdge
(
const NodeId From, |
||
| bool | AddDirectedEdgeUnique
(
const NodeId From, |
||
| NodeId | AddNode
(
const InElementType& Item |
||
| NodeId | AddNode
(
InElementType&& Item |
||
| void | Empty
(
int32_t NodesSlack, |
||
| TArray< TArray< NodeId > > | FindCycles () |
||
| int32_t | NumNodes () |
||
| void | Reserve
(
int32_t NodesSlack, |
||
| bool | TopologicalSort
(
TArray< InElementType >& OutItems |
||
| bool | TopologicalSort_Pointers
(
TArray< const InElementType* >& OutItems |
||
| bool | TopologicalSort_Pointers
(
TArray< InElementType* >& OutItems |
Operators
| Type | Name | Description | |
|---|---|---|---|
| const InElementType & | operator[]
(
NodeId Index |
||
| InElementType & | operator[]
(
NodeId Index |
Typedefs
| Name | Description |
|---|---|
| NodeId |
Constants
| Name | Description |
|---|---|
| InvalidNodeId |