This article shares some possible use cases your app could support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your app's implementation.
Your app could assist site owners in adding a widget that displays connections of connections, along with the number of connections a member shares in common with them.
Your app could help site owners add a widget showing connections of connections, and how many connections the specified member has in common with them.
Get the specified member's connections using the List Member Followers endpoint and the List Member Following endpoint.
For each direct connection, get their connections in both directions, using the same endpoints as in step 1.
Using the list of indirect connections from step 2, query any existing relationships to the specified member, using the Query Member Connections endpoint.
Sort the resulting list of potential connections into the following sets:
For each remaining suggestion, use the List Members endpoint to display details for the specified member, and provide "Follow this Member" links using the Follow Member endpoint.