---
title: "System::Text::Json::JsonHelpers::TraverseGraphWithTopologicalSort method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/jsonhelpers/traversegraphwithtopologicalsort/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use TraverseGraphWithTopologicalSort method of System::Text::Json::JsonHelpers class in C++."
---

## JsonHelpers::TraverseGraphWithTopologicalSort method




```cpp
template<typename T> static System::SharedPtr<Array<T>> System::Text::Json::JsonHelpers::TraverseGraphWithTopologicalSort(T entryNode, Func<T, System::SharedPtr<Collections::Generic::ICollection<T>>> getChildren, System::SharedPtr<Collections::Generic::IEqualityComparer<T>> comparer=nullptr)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Array](../../../system/array/)
* Class [Func](../../../system/func/)
* Class [ICollection](../../../system.collections.generic/icollection/)
* Class [IEqualityComparer](../../../system.collections.generic/iequalitycomparer/)
* Class [JsonHelpers](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
