Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
References
| Module | MetasoundGraphCore |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundDynamicOperatorTransactor.h |
| Include | #include "MetasoundDynamicOperatorTransactor.h" |
Syntax
class FDynamicGraphIncrementalSorter
Remarks
FDynamicGraphIncrementalSorter implements a dynamic topological sorting algorithm which offers several optimizations over doing full sorts.
- It can detect if a sort is needed or not. If a sort is unneeded we can skip sorts.
- Sorts are generally not done on the entire set of operators. The sort is generally done on a subset of nodes related to the nodes being connected.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDynamicGraphIncrementalSorter
(
const FGraph& InGraph |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddDataEdge
(
FOperatorID InFromOperatorID, |
Add an edge to the graph, connecting two vertices from two nodes. | |
| void | GenerateOrdinals
(
TMap< FOperatorID, int32 >& OutOrdinals |
Populate a TMap<> with an ordinal for every operator. | |
| int32 | InsertOperator
(
FOperatorID InOperator, |
Insert a node into the graph. Add a node to the graph. | |
| void | RemoveDataEdge
(
FOperatorID InFromOperatorID, |
Remove the given data edge. | |
| int32 | RemoveOperator
(
FOperatorID InOperatorID |
Remove a node from the graph.Remove a node from the graph. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EInsertLocation | Where to insert a new operator. |