For unweighted graphs, finding isometric embeddings is closely related to decompositions of $G$ into Cartesian products of smaller graphs. When $G$ is isomorphic to a Cartesian graph product, we call the factors of this product a factorization of $G$. When $G$ is isomorphic to an isometric subgraph of a Cartesian graph product, we call those factors a pseudofactorization of $G$. Prior work has shown that an unweighted graph's pseudofactorization can be used to generate a canonical isometric embedding into a product of the smallest possible pseudofactors. However, for arbitrary weighted graphs, which represent a richer variety of metric spaces, methods for finding isometric embeddings or determining their existence remain elusive, and indeed pseudofactorization and factorization have not previously been extended to this context. In this work, we address the problem of finding the factorization and pseudofactorization of a weighted graph $G$, where $G$ satisfies the property that every edge constitutes a shortest path between its endpoints. We term such graphs minimal graphs, noting that every graph can be made minimal by removing edges not affecting its path metric. We generalize pseudofactorization and factorization to minimal graphs and develop new proof techniques that extend the previously proposed algorithms due to Graham and Winkler [Graham and Winkler, '85] and Feder [Feder, '92] for pseudofactorization and factorization of unweighted graphs. We show that any $m$-edge, $n$-vertex graph with positive integer edge weights can be factored in $O(m^2)$ time, plus the time to find all pairs shortest paths (APSP) distances in a weighted graph, resulting in an overall running time of $O(m^2+n^2\log\log n)$ time. We also show that a pseudofactorization for such a graph can be computed in $O(mn)$ time, plus the time to solve APSP, resulting in an $O(mn+n^2\log\log n)$ running time.
翻译:对于未加权的图形,发现是nlogic 嵌入值与将$G美元分解成碳酸盐州产的较小图形值密切相关。当$G$对于碳酸州制的图形产品而言,我们称该产品的因子为$G美元。当$G$对于一个碳酸的图形产品而言,当这些因子值为ogrophic时,我们称这些因子为$G美元。先前的工作已经表明,可以使用未加权的图形的伪法化来生成一个碳基离子的美元美元,当美元对碳酸州制的产值进行蛋白化时,当美元是碳酸的,当任意的加权图表代表着较富的多种度,当发现偏差的嵌入或确定其存在的方法仍然难以捉摸。事实上,这些伪的因子和因子没有被扩展到这个背景。在这个工作中,我们解决了如何找到一个纯的因子化和伪化的基价化的美元,当值的因子值,当值是美元,当一个最短的直径的直径化的直径化的因直径直径直径直径直径,在最终的直径直径直径的直径的直径直径的直径直到直径的直到直到直到直至直到直到直方的直方的直径的因。我们,我们的因的因的因的直方的正方形的直方形的直方形的因。