MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetPostOrder

Function GetPostOrder

tensorflow/core/graph/algorithm.cc:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void GetPostOrder(const Graph& g, std::vector<Node*>* order,
195 const NodeComparator& stable_comparator,
196 const EdgeFilter& edge_filter) {
197 order->clear();
198 DFS(g, nullptr, [order](Node* n) { order->push_back(n); }, stable_comparator,
199 edge_filter);
200}
201
202void GetReversePostOrder(const Graph& g, std::vector<Node*>* order,
203 const NodeComparator& stable_comparator,

Callers 5

PropagateUpdatedStateMethod · 0.85
PartiallyDeclusterGraphFunction · 0.85
ConvertAfterShapesFunction · 0.85
TESTFunction · 0.85
GetReversePostOrderFunction · 0.85

Calls 3

DFSFunction · 0.85
clearMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.68