Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

How to determine the sign for the sum over all simple paths in the graph

CombinatoricsAlgebra

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

\DeclareMathOperator\permperm\DeclareMathOperator\lenlen\DeclareMathOperator\perm{perm}\DeclareMathOperator\len{len}\DeclareMathOperator\permperm\DeclareMathOperator\lenlenLet AAA be the adjacency matrix of a tree TTT for some ordering v1,...,vnv_1,...,v_nv1​,...,vn​ of the vertices, and let D=xI−AD=xI-AD=xI−A its characteristic matrix, and DijD_{ij}Dij​ the sub-matrix obtained from DDD by deleting the iiith row and jjjth column. Clearly det⁡(Dii)=ϕT−vi(x)\det( D_{ii})=\phi_{T-v_i}(x)det(Dii​)=ϕT−vi​​(x) is the characteristic polynomial of TTT with viv_ivi​ deleted. This has an interesting extension to the case i<ji<ji<j but only up to a square factor namely

(det⁡Dij)2=det⁡(DijDji)=ϕT−[vi,vj](x)2(\det D_{ij})^2=\det(D_{ij}D_{ji})=\phi_{T-[v_i,v_j]}(x)^2(detDij​)2=det(Dij​Dji​)=ϕT−[vi​,vj​]​(x)2

where T−[vi,vj]T-[v_i,v_j]T−[vi​,vj​] is the forest obtained from TTT by deleting all vertices on the unique path from viv_ivi​ to vjv_jvj​. It follows that

det⁡(Dij)=±ϕT−[vi,vj](x),\det (D_{ij})= \pm \phi_{T-[v_i,v_j]}(x),det(Dij​)=±ϕT−[vi​,vj​]​(x),

which begs the question of how are the signs determined? Both signs can occur for different i,ji,ji,j but there does not seem to be a simple rule. For instance if T=[12,23,24,15,56]T=[12,23,24,15,56]T=[12,23,24,15,56] then the sign is a plus if i=ji=ji=j or ij=13,24,15,35,26,46ij=13,24,15,35,26,46ij=13,24,15,35,26,46. I am curious to know the rule even if a proof is not available.

Interestingly there is a similar formula if we replace ϕA(x)\phi_A(x)ϕA​(x) by the permanent characteristic polynomial,ψA(x):=\perm(xI−A)\psi_A(x):=\perm(xI-A)ψA​(x):=\perm(xI−A) and now there is a simple rule for the sign.

\perm(Dij)=(−1)\len([vi,vj])ψT−[vi,vj](x),\perm(D_{ij})=(-1)^{\len([v_i,v_j])} \psi_{T-[v_i,v_j]}(x),\perm(Dij​)=(−1)\len([vi​,vj​])ψT−[vi​,vj​]​(x),

where \len([vi,vj])\len([v_i,v_j])\len([vi​,vj​]) is the length of the path [vi,vj][v_i,v_j][vi​,vj​].

(Added) There is a very simple extension if AAA is the adjacency matrix of a graph GGG not necessarily a tree. We then have

det⁡(Dij)=(−1)i+j∑[vi,vj]ϕG−[vi,vj](x),\det(D_{ij})=(-1)^{i+j}\sum_{[v_i,v_j]} \phi_{G-[v_i,v_j]}(x),det(Dij​)=(−1)i+j∑[vi​,vj​]​ϕG−[vi​,vj​]​(x), and

perm(Dij)=∑[vi,vj](−1)(len[vi,vj])ψG−[vi,vj](x),perm(D_{ij})=\sum_{[v_i,v_j]} (-1)^{(len[v_i,v_j])} \psi_{G-[v_i,v_j]}(x),perm(Dij​)=∑[vi​,vj​]​(−1)(len[vi​,vj​])ψG−[vi​,vj​]​(x),

where the sum is over all simple paths (ie. all verices on the path distinct) from viv_ivi​ to vjv_jvj​.

(Added 2) The formula for sum over all paths was found by guessing. It is not at all obvious because of cancelations. If we label the edges with new variables, there will be no cancelation and a term coding the path appears, and it becomes impossible not to see the sum over all paths.

We define the labelled adjacency of a graph by Ay[i,j]=Ay[j,i]=yijA_y[i,j]=A_y[j,i]=y_{ij}Ay​[i,j]=Ay​[j,i]=yij​ if (i,j)(i,j)(i,j) is an edge and zero otherwise. Let Ix=diag{x1,...,xn}I_x=diag\{x_1,...,x_n\}Ix​=diag{x1​,...,xn​}. The multi-variable homogeneous characteristic polynomial of GGG is ΦG(x,y)=det⁡(Ix−Ay)\Phi_G(x,y)=\det (I_x-A_y)ΦG​(x,y)=det(Ix​−Ay​) and similarly ΨG(x,y)=perm(Ix−Ay)\Psi_G(x,y)= perm (I_x-A_y)ΨG​(x,y)=perm(Ix​−Ay​). They are homogeneous polynomial in xi,yjkx_i,y_{jk}xi​,yjk​ of degree nnn. For D=Ix−AyD=I_x-A_yD=Ix​−Ay​, we now have

(−1)i+jdet⁡Dij=∑pij∈[vi.vj]ΦG−pij(x,y)∏y∈pijyst,(-1)^{i+j} \det D_{ij}=\sum_{p_{ij} \in [v_i.v_j]} \Phi_{G-p_{ij}}(x,y) \prod_{y \in p_{ij}} y_{st},(−1)i+jdetDij​=∑pij​∈[vi​.vj​]​ΦG−pij​​(x,y)∏y∈pij​​yst​, permDij=∑pij∈[vi.vj](−1)len(pij)ΨG−pij(x,y)∏y∈pijyst,perm D_{ij}=\sum_{p_{ij} \in [v_i.v_j]} (-1)^{len(p_{ij})} \Psi_{G-p_{ij}}(x,y) \prod_{y \in p_{ij}} y_{st},permDij​=∑pij​∈[vi​.vj​]​(−1)len(pij​)ΨG−pij​​(x,y)∏y∈pij​​yst​, where pijp_{ij}pij​ range over all non self-intersecting path from viv_ivi​ to vjv_jvj​ and the product term ∏yst\prod y_{st}∏yst​ is over all the edges in the deleted path.

(Added 4) The perm formula above is invariant (independent of vertex ordering) since we can replace ijijij by uvuvuv where uuu,vvv are given vertices and len(puv)len(p_{uv})len(puv​) is invariant. However it is impossible to get rid of (−1)i+j(-1)^{i+j}(−1)i+j so the det formula cannot be made invariant. In a sense, one can say this example lead us to "discover" fermions can have 1/2-intergal spin. I knew the perm formula already and was looking for an invariant sign for det and that's why I missed the very obvious (−1)i+j(-1)^{i+j}(−1)i+j. So it is good to think basis-free even when it fails.

eg. If G=[12,23,34,24,25,45]G=[12,23,34,24,25,45]G=[12,23,34,24,25,45], [v1,v5]=[125,12345,1245][v_1,v_5]=[125,12345,1245][v1​,v5​]=[125,12345,1245], and we have det⁡D15=y12y25(x3x4−y342)+y12y23y34y45+y12y24y45x3\det D_{15}=y_{12}y_{25}(x_3x_4-y_{34}^2)+y_{12}y_{23}y_{34}y_{45}+y_{12}y_{24}y_{45}x_3detD15​=y12​y25​(x3​x4​−y342​)+y12​y23​y34​y45​+y12​y24​y45​x3​ permD15=y12y25(x3x4+y342)+y12y23y34y45−y12y24y45x3 perm D_{15}=y_{12}y_{25}(x_3x_4+y_{34}^2)+y_{12}y_{23}y_{34}y_{45}-y_{12}y_{24}y_{45}x_3permD15​=y12​y25​(x3​x4​+y342​)+y12​y23​y34​y45​−y12​y24​y45​x3​

So one can find all paths between two vertices in a graph by evaluating an (n−1)×(n−1)(n-1) \times (n-1)(n−1)×(n−1) determinant.

There is a way to distinguish between the ysty_{st}yst​ occurring in a path from those in ΦG(x,y)\Phi_G(x,y)ΦG​(x,y).

For a tree TTT, ϕT(x)=∑k=0[n/2](−1)kckxn−2k\phi_T(x)=\sum_{k=0}^{[n/2]} (-1)^kc_kx^{n-2k}ϕT​(x)=∑k=0[n/2]​(−1)kck​xn−2k, where ckc_kck​ counts the number of matchings (mutually non adjacent edges) of size kkk). The homogenised form enumerate the kkk-matchings ∏yij2\prod y_{ij}^2∏yij2​ with square term times a produce of xix_ixi​ which does not appear as vertices , in other words, the yijy_{ij}yij​ and the xkx_kxk​ form a spanning forest.

Eg. if T=[[1,2],[2,3],[2,4],[4,5]]T=[[1,2],[2,3],[2,4],[4,5]]T=[[1,2],[2,3],[2,4],[4,5]]. ΦT(x,y)=x1x2x3x4x5−(x3x4x5y122+x1x4x5y232+x1x3x5y242+x1x2x3y452)\Phi_T(x,y)=x_1x_2x_3x_4x_5-(x_3x_4x_5y_{12}^2+x_1x_4x_5y_{23}^2+x_1x_3x_5y_{24}^2+x_1x_2x_3y_{45}^2) ΦT​(x,y)=x1​x2​x3​x4​x5​−(x3​x4​x5​y122​+x1​x4​x5​y232​+x1​x3​x5​y242​+x1​x2​x3​y452​) +x3(y12y45)2+x1(y23y45)2,+x_3(y_{12}y_{45})^2+x_1(y_{23}y_{45})^2,+x3​(y12​y45​)2+x1​(y23​y45​)2, but the ysty_{st}yst​ need not be squared when there is a cycle, eg G=[12,23,13]G=[12,23,13]G=[12,23,13] ΦG(x,y)=x1x2x3−(x1y232+x2y132+x3y122)−2y12y23y13\Phi_G(x,y)=x_1x_2x_3-(x_1y_{23}^2+x_2y_{13}^2+x_3y_{12}^2)-2y_{12}y_{23}y_{13}ΦG​(x,y)=x1​x2​x3​−(x1​y232​+x2​y132​+x3​y122​)−2y12​y23​y13​,

where the last term corresponding to a cycle is square-free but they always occurred doubled which follows from the deletion formula.

So if we let D=In−AyD=I_n-A_yD=In​−Ay​ and P=det⁡DijP=\det D_{ij}P=detDij​, (P(y)−∑1≤s<t≤nyst22∂2P∂yst2(y))    mod    2=∑pij∈[vi.vj]∏y∈pijyst,\left(P(y)-\sum_{1 \le s < t \le n}\frac{y_{st}^2}{2}\frac{\partial^2P}{\partial y_{st}^2}(y) \right) \; \; mod \;\;2=\sum_{p_{ij} \in [v_i.v_j]} \prod_{y \in p_{ij}} y_{st},(P(y)−∑1≤s<t≤n​2yst2​​∂yst2​∂2P​(y))mod2=∑pij​∈[vi​.vj​]​∏y∈pij​​yst​, will be a sum of paths joining viv_ivi​ to vjv_jvj​, and there is a similar all minor version for multiple paths.

(Added August 2002) The sum over all paths formula follows essentially from the edge deletion formula. If e=ije=ije=ij is an edge, ΦG(x,y)=ΦG−e(x,y)−yij2ΦG−[e](x,y)−2∑C∋eΦG−C(x,y)∏y∈Cyuv,\Phi_G(x,y)=\Phi_{G-e}(x,y)-y_{ij}^2\Phi_{G-[e]}(x,y)-2\sum_{C \ni e} \Phi_{G-C}(x,y)\prod_{y \in C} y_{uv},ΦG​(x,y)=ΦG−e​(x,y)−yij2​ΦG−[e]​(x,y)−2∑C∋e​ΦG−C​(x,y)∏y∈C​yuv​, where CCC range over all cycles containing eee. If we remove eee from all the cycles, we get all paths from viv_ivi​ to vjv_jvj​.

Interestingly, there is a similar sum over all path formula for the matching polynomial : MG(x,y)=∑yij=(xixj)∈M(−1)kx1...xn(yi1j1...yikjk)2(xi1xj1)...(xikxjk), M_G(x,y)=\sum_{y_{ij}=(x_ix_j) \in M} (-1)^k \frac{x_1...x_n (y_{i_1j_1}...y_{i_kj_k})^2}{(x_{i_1}x_{j_1})...(x_{i_k}x_{j_k})},MG​(x,y)=∑yij​=(xi​xj​)∈M​(−1)k(xi1​​xj1​​)...(xik​​xjk​​)x1​...xn​(yi1​j1​​...yik​jk​​)2​, where the sum is over all sets of mutually non-adjacent edges {yis,js}\{y_{i_s,j_s}\}{yis​,js​​} and xis,xjsx_{i_s},x_{j_s}xis​​,xjs​​ are their end points. This agrees with the characteristic polynomial ΦG(x,y)\Phi_G(x,y)ΦG​(x,y) if GGG is a tree and specialize to the usual matching polynomial mG(x)=∑(−1)kmkxn−2km_G(x)=\sum (-1)^km_kx^{n-2k}mG​(x)=∑(−1)kmk​xn−2k in the one variable case, where mkm_kmk​ is the number of kkk matchings. An important non obvious property of mG(x)m_G(x)mG​(x) is that it is real rooted. One can also prove this by showing that it lifts to a real stable multi-variable polynomial MG(x)M_G(x)MG​(x). Since MG(x)M_G(x)MG​(x) is multi-affine, it suffices to prove that Δij(MG(x))≥0\Delta_{ij}(M_G(x)) \ge 0Δij​(MG​(x))≥0 where Δij(P):=PiPj−PPij\Delta_{ij}(P):=P_i P_j- P P_{ij}Δij​(P):=Pi​Pj​−PPij​. We observe that it is always a sum of squares indexed by non self intersecting paths from viv_ivi​ to vjv_jvj​

Δij(MG(x,y))=∑pij∈[vi,vj]MG−pij(x,y)2∏y∈pijyuv2.\Delta_{ij}(M_G(x,y))=\sum_{p_{ij} \in [v_i,v_j]} M_{G-p_{ij}}(x,y)^2 \prod_{y \in p_{ij}} y_{uv}^2.Δij​(MG​(x,y))=∑pij​∈[vi​,vj​]​MG−pij​​(x,y)2∏y∈pij​​yuv2​. Note in contrast, we have earlier for the characteristic polynomial ΦG(x,y)\Phi_G(x,y)ΦG​(x,y) Δij(ΦG(x,y))=(∑pij∈[vi,vj]ΦG−pij(x,y)∏y∈pijyuv)2,\Delta_{ij}(\Phi_G(x,y))=\left( \sum_{p_{ij} \in [v_i,v_j]} \Phi_{G-p_{ij}}(x,y) \prod_{y \in p_{ij}} y_{uv} \right)^2,Δij​(ΦG​(x,y))=(∑pij​∈[vi​,vj​]​ΦG−pij​​(x,y)∏y∈pij​​yuv​)2, where the squareroot term on the right Is (−1)i+jDij(-1)^{i+j}D_{ij}(−1)i+jDij​.

Question 1: How does one prove the first formula for Δij(MG(x,y))\Delta_{ij}(M_G(x,y))Δij​(MG​(x,y)) ? The edge deletion formula for matching polynomial does not have a sum over all cycles term.

Non self intersecting paths are exactly self avoiding walks, which seem to be very hard to compute and it seems that we have unintentionally found a formula which may be useful.

We also observe that the connective constant of the Honeycomb lattice 2+2\sqrt{2+\sqrt{2}}2+2​​ is the largest eigenvalue of the matching polynomial of a square (coincidence?), x4−4x2+2x^4-4x^2+2x4−4x2+2 which means its 2r2r2r moments 2(2+2)r+2(2−2)r2(2+\sqrt{2})^r+2(2-\sqrt{2})^r2(2+2​)r+2(2−2​)r counts all the tree like closed walks in a square. This means if crc_rcr​ is the number of closed walks rooted at a vertex of the path tree (which is a rooted tree with two tails which are paths of length 333), then cr∼(2+2)r/2c_r \sim (\sqrt{2+\sqrt{2}})^r/2cr​∼(2+2​​)r/2. Note that if we write the square as G=[12,23,34,14]G=[12,23,34,14]G=[12,23,34,14], then the path tree at 111, TG(1)=[1,12,123,1234,14,143,1432]T_G(1)=[1,12,123,1234,14,143,1432]TG​(1)=[1,12,123,1234,14,143,1432] is just the path graph on 777 vertices rooted at the center and if we identify the two end points, we get exactly a hexagon.

Question 2: Is there a way to relate closed walks on this path tree to self avoiding walks on the Honeycomb lattice since they grow at the same rate ?

Statement and context adapted from MathOverflow · CHUAKS

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Squarefree integer
An integer divisible by no square of a prime. For example, 30 is squarefree, but 12 is divisible by 4.
Asymptotic behaviour
This studies a quantity as its parameter becomes large. Writing f(n) ∼ g(n) means that their ratio tends to 1, not that the functions are exactly equal.
Graph
A set of vertices connected by edges. A vertex’s degree counts the incident edges; the statement specifies whether directions or multiple edges are allowed.

Topics : co.combinatorics · linear-algebra · graph-theory

Authors listed by the source : CHUAKS

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : October 27, 2022

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni