The distance ideals of graphs are algebraic invariants that generalize the Smith normal form (SNF) and the spectrum of several distance matrices associated with a graph. In general, distance ideals are not monotone under taking induced subgraphs. However, in [7] the characterizations of connected graphs with one trivial distance ideal over and over were obtained in terms of induced subgraphs, where is a set of variables indexed by the vertices. Later, in [3], the first attempt was made to characterize the family of connected graphs with at most two trivial distance ideals over . There, it was proven that these graphs are -free, where consists of the odd cycles of length at least seven and is a set of sixteen graphs. Here, we give a characterization of the -free graphs and prove that the -free graphs are precisely the graphs with at most two trivial distance ideals over . As byproduct, we also find that the determinant of the distance matrix of a connected bipartite graph is even, this suggests that it is possible to extend, to connected bipartite graphs, the Graham-Pollak-Lovász celebrated formula , and the Hou-Woo result stating that , for any tree with vertices. Finally, we also give the characterizations of graphs with at most two trivial distance ideals over , and the graphs with at most two trivial distance univariate ideals.

生成讲解博客的中文版本

生成AI智能校验的中文版本