Influence and link prediction
How ideas spread through a network — independent cascade and linear threshold — and how the same graph structure predicts which missing links will form.
Networks are not static. Information, rumours, purchases and behaviours flow along their edges, and edges themselves appear and disappear as people meet and drift apart. Two classic questions follow. If you could persuade a handful of seed users, who should they be to maximise the spread? And given today's graph, which pairs are most likely to become connected tomorrow?
Both reduce to structure. Influence spreads through adjacency; missing links leave structural fingerprints.
Cascade, then prediction
In a cascade, an active node tries to activate its neighbours with some probability, and activation repeats from each newly active node. In link prediction, two nodes with many common neighbours are likely to know each other. The first simulates a process over edges; the second scores edges that are not there yet.
Seed the graph and step the cascade forward edge by edge.
Pick seed nodes, set the transmission probability, then step the independent cascade forward. Highlighted edges are the successful transmissions.
- seeds
- A
- round
- 0 / 0
- active
- 1 / 6
- future spread
- 1 last-round nodes
Click a node to add or remove it as a seed. Yellow rings are seeds; the cascade recolours nodes as they activate.
A genuine independent-cascade process with seeded pseudo-random coin flips. Finding the seed set that maximises expected spread is NP-hard; Kempe–Kleinberg–Tardos greedy gives a (1 − 1/e) approximation, which is what real influence-maximisation uses.
Two diffusion models
Independent cascade (IC). Given a seed set, each newly activated node gets one independent chance to activate each currently inactive neighbour with probability . The chance is independent across edges and attempts. The process runs until no new activations.
Linear threshold (LT). Each node has a threshold , and each edge a weight with . Node activates when the total weight of its active neighbours reaches :
IC is probabilistic and edge-local; LT is deterministic given thresholds and captures the "enough of my friends are doing it" effect.
Influence maximisation and submodularity
The optimisation problem is: choose seeds to maximise the expected number of activated nodes. It is NP-hard for both models, but the expected spread is a monotone submodular function of the seed set — adding a seed helps less when you already have many. That gives the greedy algorithm a approximation guarantee: repeatedly add the node with the largest marginal gain, estimating spreads by Monte-Carlo simulation. In practice this is accelerated with sketches such as Reverse Influence Sampling.
Link prediction from structure
Given a target pair that is not yet connected, score it with:
- Common neighbours: .
- Jaccard: — normalises for degree so hubs do not dominate.
- Adamic–Adar: , down-weighting shared neighbours that are themselves hubs.
- Preferential attachment: — purely degree-based.
- Katz: a weighted count of all paths between them, decaying with length.
Predictions are usually evaluated as a ranking problem: hide a fraction of edges, score the withheld pairs, and report ROC-AUC or precision@k.
Correlation is not diffusion
Structural overlap predicts links because networks form by homophily, triadic closure and shared context — not because similarity causes connection. Likewise a simulated cascade is a model, not a measurement: estimated probabilities from real social data are confounded by exposure, recommendation and selection. Treat both as hypotheses about mechanism.
Illustrative vs real
The widget runs a genuine independent cascade with seeded coin flips on six nodes. Real influence studies estimate or thresholds from logs, simulate the spread of an item through a much larger graph, and validate with held-out diffusion traces; link-prediction papers report AUC on collaboration, co-authorship and social graphs. The algorithms and the approximation guarantee are exactly as stated; the scale is not.
Check yourself
Eduspheria wiki · Applied AI, Social network analysis
0 / 5 answered
From the exam paper
Modeled on NITJ AI-603, End-Sem May 2025
0 / 6 answered
Where next: networks of people generalise to networks of facts — the semantic web's triples, ontologies and reasoning.