Private homophilyPrivate inputPrivate isPrivate Optional modelPrivate outputPrivate popularityPrivate proximityPrivate calculateCalculate similarity between two agents
Private countPrivate createCreate connection action
Private createCreate disconnection action
Private createCreate maintenance action for existing connections
Private createCreate network action from ML evaluation
Private createCreate no-action response
Private determinePrivate encodeEncode agent state and candidate for ML model
Private evaluateEvaluate candidates using ML model
Private evaluateEvaluate a potential connection candidate
Private findFind potential agents to connect with
Private generateGenerate mock network state for training
Generate training data for network formation model
Private getGet current connections of the agent
Private getGet maximum number of connections this agent can maintain
Predict next action based on current agent state
Current state of the agent
Promise resolving to the predicted action
Private predictML-based prediction
Private predictRule-based network formation prediction
Generic network formation ML model for social connections Works for friendship networks, collaboration networks, or any social structure