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

Method RemoveEdge

tensorflow/compiler/jit/graphcycles/graphcycles.cc:154–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void GraphCycles::RemoveEdge(int32 x, int32 y) {
155 rep_->nodes_[x]->out.Erase(y);
156 rep_->nodes_[y]->in.Erase(x);
157 // No need to update the rank assignment since a previous valid
158 // rank assignment remains valid after an edge deletion.
159}
160
161static bool ForwardDFS(GraphCycles::Rep* r, int32 n, int32 upper_bound);
162static void BackwardDFS(GraphCycles::Rep* r, int32 n, int32 lower_bound);

Calls 1

EraseMethod · 0.45

Tested by 1

TESTFunction · 0.36