MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / new_node

Method new_node

src/Tracker/graph/GTL/src/graph.cpp:174–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172//--------------------------------------------------------------------------
173
174node graph::new_node()
175{
176 pre_new_node_handler();
177
178 // create node
179
180 node n;
181 n.data = new node_data;
182
183 // set data variables
184
185 n.data->id = new_node_id();
186 n.data->owner = this;
187 n.data->pos = nodes.insert(nodes.end(), n);
188 n.data->hidden = false;
189 ++nodes_count;
190
191 // done
192
193 post_new_node_handler(n);
194
195 return n;
196}
197
198edge graph::new_edge(GTL::node source, GTL::node target)
199{

Callers 6

SolveMethod · 0.80
forall_nodesFunction · 0.80
mainFunction · 0.80

Calls 4

pre_new_node_handlerFunction · 0.85
post_new_node_handlerFunction · 0.85
insertMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected