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

Method get_neighbor

dlib/test/graph_cuts.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 unsigned long get_neighbor (
70 unsigned long node_id,
71 unsigned long idx
72 ) const
73 {
74 DLIB_TEST(node_id < number_of_nodes());
75 DLIB_TEST(idx < number_of_neighbors(node_id));
76 if (idx < node_id)
77 return idx;
78 else
79 return idx+1;
80 }
81
82 void set_label (
83 const unsigned long& idx,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected