-
-
Save MaikKlein/7bc6b6909c06cdaad88b9f3948ce4aa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let node = *edges_iter.next().unwrap(); | |
| for neighbor in edges_iter { | |
| g.add_edge(node, *neighbor, 1); | |
| } | |
| if let Some(node) = edges_iter.next() { | |
| for neighbor in edges_iter { | |
| g.add_edge(node, *neighbor, 1); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment