You may want to check out how to decay the contribution of the past edges in the anomalousness of the current edge.
deviation from the normal or common order or form or rule
See also: anomaly