-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
This iterator logic looks broken to me. Shouldn't the iterator eit be compared against the end of the list instead of the beginning?
Lines 249 to 264 in fc1ef15
| edge_iterator find_in_edge(uint64_t vid, edge_iterator eit) | |
| { | |
| for (;eit!=in_edges.begin();eit++) | |
| { | |
| if (eit->target()==vid) | |
| return eit; | |
| } | |
| } | |
| edge_iterator find_out_edge(uint64_t vid, edge_iterator eit) | |
| { | |
| for (;eit!=out_edges.begin();eit++) | |
| { | |
| if (eit->target()==vid) | |
| return eit; | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels