| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected