add getting bridge by tarjan
remove temp files