MCPcopy Create free account
hub / github.com/davisking/dlib / check_node

Method check_node

dlib/graph/graph_kernel_1.h:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 static void check_node (
59 unsigned long index,
60 const graph& self
61 )
62 {
63 // make sure requires clause is not broken
64 DLIB_CASSERT(index < self.number_of_nodes(),
65 "\tnode_type& graph::node(index)"
66 << "\n\tYou have specified an invalid index"
67 << "\n\tindex: " << index
68 << "\n\tnumber_of_nodes(): " << self.number_of_nodes()
69 << "\n\tthis: " << &self
70 );
71 }
72
73 static void check_has_edge (
74 unsigned long node_index1,

Callers

nothing calls this directly

Calls 1

number_of_nodesMethod · 0.45

Tested by

no test coverage detected