src/core/Suggest.h
Suggest [Module]
Description
The Suggest module provides Friend Recommendation logic, typically based on
analyzing "friends of friends" in the graph structure.
Functions
std::vector<int> suggest(Graph& graph, int id)
Suggests new friends for a given user ID based on network connections
(e.g., mutual friends).
Parameters
- graph: The Graph object.
- id: The User ID to get suggestions for.
Vector of suggested user IDs.
void printSuggestions(const std::vector<int>& v)
Prints the suggested friend IDs to the console.