Laplacianoid

From Worden
Jump to: navigation, search

Contents

Introduction

After experimenting with using a graph's Laplacian on its own adjacency matrix in a straightforward way, I found that it was doing the blurring operation I want on the tail end of each graph edge, but not on the head ends. I designed a new operation that works on both ends of each edge.

I call this double operation "Laplacianoid" because it's made of two Laplacian operations, not one:

(x)y=Lo(x)y+yLi(x),

that is,

(-(x)y)ij=k[xik(ykj-yij)+(yik-yij)xkj].

Note (x)y is not a product of two matrices; it's the operation of linear operator (x) on matrix y. Given an n×n matrix x, (x) is a linear operator on the space of n×n matrices. If both x and y are symmetric, then (x)y is also symmetric.

Laplacianoid ODE

Note: I am also studying a stochastic process based on the Laplacianoid operation: see Laplacian Experiments/Stochastic for the analysis of that process.

The ODE

e˙=-(e)e,

i.e.,

e˙ij=k[eik(ekj-eij)+(eik-eij)ekj]
=k[2eikekj-(eik+ekj)eij]

does what I want much better than the one-sided operations like L(e)e.

Simulation indicates that this tends to equilibrium at a multiple of the complete graph, that is at

eij=k for all i,j.

Other equilibria include disconnected complete subgraphs, i.e. let the set of vertices V be the union of disjoint Vs, and

eij=ks for {i,j}Vs, 0 otherwise.

In either of these cases eik(ekj-eij) and ekj(eik-eij) are both zero for all i,j,k.

Q: Are there other equilibria? Which are stable?

Linear algebra of ℒ

Let's assume that e is symmetric here (or equivalently, that the graph is undirected), so that Lo(e)=Li(e)=L(e). Since (e) is a linear operator on the n2-dimensional space of n×n matrices, it has n2 eigenvalues, and an eigenmatrix (rather than eigenvector) for each. If vi are the eigenvectors of L(e) with eigenvalues λi, the eigenmatrices of (e) are xij=vivjT with eigenvalues λij=λi+λj:

(e)xij=L(e)xij+xijL(e)
=(λi+λj)xij.

When e is symmetric, L(e) has nonnegative eigenvalues, so the only zero eigenvalues of (e) come from zero eigenvalues of L(e). If e is connected, the only zero eigenvector of the Laplacian is the vector of all ones, 1, so the only zero eigenmatrix of (e) is 1 1T.

If the graph is not connected, it's a union of disjoint subgraphs G1,,Gk with adjacency matrices e1,,ek with e=e1++ek. The null space of L(e) contains k orthogonal eigenvectors vi with (vi)j=1 if vertex j is part of subgraph i0 otherwise. It follows that the nullspace of (e) is k2-dimensional and the corresponding eigenmatrices are constructed from pairs of these vi as above.

We know already that i,j(Lo(e)e)ij=0 because it's zero for each j provided e is symmetric, and i,j(eLi(e))ij=0 by the same process on each i, so in the ODE the sum of all edge weights is conserved. If the equilibrium matrix e() is connected, then, it must be that e()=i,jeij(0)n21 1T.

It seems like it ought to be straightforward to show that if e is connected at time 0, it stays connected.

It's sometimes helpful to write the regular Laplacian of a graph e in the form

-L(e)ij=eij-keikδij

where δij is 1 when i=j and 0 otherwise. The corresponding expression for the Laplacianoid is

-(e)ij,k=eikδj+ejδik-p(eip+epj)δikδj.

This can be plugged in to give us the Laplacianoid operation we know:

(-(e)x)ij=k-(e)ij,kxk=keikxkj+ejxi-p(eip+epj)xij\begin{aligned}\displaystyle(-\mathscr{L}(\mathbf{e})\mathbf{x})_{{ij}}&\displaystyle=\sum _{{k\ell}}-\mathscr{L}(\mathbf{e})_{{ij,k\ell}}x_{{k\ell}}\\&\displaystyle=\sum _{k}e_{{ik}}x_{{kj}}+\sum _{{\ell}}e_{{\ell j}}x_{{i\ell}}-\sum _{p}(e_{{ip}}+e_{{pj}})x_{{ij}}\end{aligned}

In this way we can think of the Laplacianoid as a sort of hypermatrix - an object with four indices that operates on matrices the way a matrix operates on vectors.

The Jacobian of the dynamics

To assess the stability of the ODE's equilibria, we need to look at its Jacobian. Since

e˙ij=k[2eikekj-(eik+ekj)eij],

we have

e˙ijeij=2eii+2ejj-2eij-k(eik+ekj),

and for ki and j,

e˙ijei=2ej-eij,
e˙ijekj=2eik-eij,
e˙ijek=0.

We can encapsulate this by writing (for all k,)

e˙ijek=(2ej-eij)δik+(2eik-eij)δj-p(eip+epj)δikδj.

As with a regular vector dynamical system, if e* is an equilibrium, a point near the equilibrium e=e*+x has derivative e˙ij=x˙ijk,e˙ijekxk, and we want to know if there is any such x that grows rather than shrinking. This really is a regular vector dynamical system, notwithstanding the fact that the state variables are written in a square rather than a column, so all the linear theory applies, including the fact that e* is hyperbolically stable if and only if all the eigenvalues of the Jacobian are negative.

So let's look at the quadratic form associated with the Jacobian, because if we can show that the quadratic form is never positive (that is, if it's a negative definite or negative semidefinite form) we can conclude that the eigenvalues of the Jacobian are all negative or non-positive. Because the ODE is restricted to symmetric matrices as long as the initial value is symmetric, we can restrict ourselves to the action of the Jacobian on symmetric perturbations x. The quadratic form is

Q(x)=i,j,k,xije˙ijekxk

and for symmetric x,

Q(x)=a,b,ceab(4xacxbc-xabxac-xabxbc-xac2-xbc2)

This does not seem to be negative semidefinite necessarily, and it seems like it might have positive values at at least some equilibrium values of e*.

Let's investigate the complete-graph equilibrium, since I think it ought to be stable. In this case

Q(x)=a,b,ck(-(xac-xbc)2-xac(xab-xbc)-xbc(xab-xac))

but since we are considering only symmetric x, we can write

a,b,cxac(xab-xbc)=a,b,cxacxab-a,b,cxacxbc

this works for the third term of the above expression as well as for the second, so we conclude that

Q(x)=-ka,b,c(xac-xbc)2,

and so it is negative semidefinite. Q(x) is zero when xac=xbc for all a,b,c; for symmetric x this condition implies that all entries of x are equal: xij=xj=xj=xk. These are the zero eigenmatrices of the Jacobian, and all other eigenvalues are negative.

Consequently this e* is a hyperbolically stable fixed point, except that it's neutral to the addition of a constant to all entries of the matrix. The dynamics conserves the sum of all matrix entries, so in fact it's entirely stable.

Now when e* is made of disjoint cliques, it's different:

Q(x)=sa,bVs,cVks(-(xac-xbc)2-xac(xab-xbc)-xbc(xab-xac))

If x has an edge xij>0 from one clique to another, we can have a positive term at (a,b,c)=(i,i,j).

The linearized system is

x˙ij=k,e˙ijekxk

and for this e* this has two cases: if i and j are in the same Vs, i.e. if eij>0,

x˙ij=Vsksxi-Vsksxi+kVsksxkj-kVsksxkj-pVs2ksxij

and if iVs and jVt (st),

x˙ij=Vt2ktxi+kVs2ksxkj-pVsksxij-pVtktxij

I wish to construct an eigenmatrix with a positive eigenvalue, that is x˙=λx with λ>0. This will demonstrate that the union of multiple disjoint cliques is not a stable equilibrium.

A positive eigenmatrix

Given an equilibrium matrix e* made of multiple disjoint cliques, let us choose two distinct cliques Vs and Vt, and let xij=0 except that xij is z for every edge connecting Vs and Vt, u for every edge within Vs and v for every edge within Vt.

Then for an edge from Vs to Vt

x˙ij=(|Vs|ks+|Vt|kt)z,

and from Vt to Vs

x˙ij=(|Vt|kt+|Vs|ks)z,

while for an edge within Vs

x˙ij=-|Vt|ksz

and within Vt

x˙ij=-|Vs|ktz.

For all other edges x˙ij=0.

So if this is going to be an eigenmatrix we must have

λ=|Vs|ks+|Vt|kt;

and given this we require

-|Vt|ksz=λu

and

-|Vs|ktz=λv,

so we simply set u=-|Vt|ksz/λ and v=-|Vs|ktz/λ, and there it is!

(Note that x is not a graph's adjacency matrix itself, it's a perturbation to e*, so it's fine for it to have negative entries. It adds weight to edges that are zero, and subtracts from edges that are positive.)

A corrected Laplacianoid

Here's a variation on the Laplacianoid, with a correction term so that it does the same thing but doesn't create loops, i.e. nonzero eii. The Laplacanoid equation does, because of lots of terms like e˙11=+e12e21+. So to remove those:

(c(x)y)ij={0 if i=jk[xik(ykj-yij)+(yik-yij)xkj]+2xijyij otherwise.

This should be a lot like the uncorrected Laplacianoid, preserving symmetry of y, and

e˙=-c(e)e

should conserve the sum of edge weights, and hopefully will go to all edges equal, but with no loops.

This is also a linear operator. I haven't done any simulations or analysis on it yet...

Personal tools
Namespaces

Variants
Actions
Navigation
Projects
Go:
Toolbox