MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / putEdge

Method putEdge

Core/Utilities/Tools/Graph.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void Graph::putEdge(uint32_t i, uint32_t j)
84{
85 mSuccessors[i].insert(j);
86 mPredecessors[j].insert(i);
87
88 if (!isDirectedGraph()) {
89 mSuccessors[j].insert(i);
90 mPredecessors[i].insert(j);
91 }
92}
93
94std::string Graph::dotify(std::string name) const
95{

Callers 7

build_sub_graphFunction · 0.45
phase1Method · 0.45
build_arch_graphMethod · 0.45
fixUndefAssignmentsFunction · 0.45
initializeMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected