quasimetrics
Quasimetrics are a generalization of metric spaces in which the distance function may be non-symmetric. Formally, a quasi-metric space consists of a set X together with a function d: X×X → [0, ∞) such that for all x, y, z in X: d(x, x) = 0 and d(x, z) ≤ d(x, y) + d(y, z). Unlike a metric, a quasi-metric is not required to satisfy d(x, y) = d(y, x). The lack of symmetry means that the distance from x to y can differ from the distance from y to x.
There are related notions that refine or loosen the axioms further. A quasi-pseudometric relaxes the identity
Examples and constructions include distances in directed graphs, where the length of the shortest directed path
Quasimetrics are studied in areas such as analysis, geometry, and theoretical computer science, where directional costs