traverse all graph connect branch