once worked on a project that tried to do just that, but at the time the LinkedIn api was already limited to seeing the authenticated users connections connections, which was too limited for what we wanted to do, can only imagine it got worse.
It's also the reason recruiters really want to connect to you on LinkedIn because even if you are not interested, your connections might be.