Calculate embedding drift between two graphs
calculate_drift.RdAligns the embedding of graph 2 onto the reference embedding of graph 1
via orthogonal Procrustes, then computes per-node cosine similarities as a
measure of context drift. Nodes shared between both graphs receive a cosine
similarity in [-1, 1]. Nodes exclusive to graph 1 are assigned -1.1 and
nodes exclusive to graph 2 are assigned +1.1 as sentinel values indicating
absence rather than a computed similarity.
Arguments
- object
An
EmbedDriftobject, seeEmbedDrift().