This is a simple dfs program calculating number of edges in component with vertex 1.
Test case: https://www.dropbox.com/s/4844zj7xnp4qw77/test.txt?dl=0 I don\'t kno