Calculus on finite weighted graphs

From testwiki
Jump to navigation Jump to search

Template:Short description In mathematics, calculus on finite weighted graphs is a discrete calculus for functions whose domain is the vertex set of a graph with a finite number of vertices and weights associated to the edges. This involves formulating discrete operators on graphs which are analogous to differential operators in calculus, such as graph Laplacians (or discrete Laplace operators) as discrete versions of the Laplacian, and using these operators to formulate differential equations, difference equations, or variational models on graphs which can be interpreted as discrete versions of partial differential equations or continuum variational models. Such equations and models are important tools to mathematically model, analyze, and process discrete information in many different research fields, e.g., image processing, machine learning, and network analysis.

In applications, finite weighted graphs represent a finite number of entities by the graph's vertices, any pairwise relationships between these entities by graph edges, and the significance of a relationship by an edge weight function. Differential equations or difference equations on such graphs can be employed to leverage the graph's structure for tasks such as image segmentation (where the vertices represent pixels and the weighted edges encode pixel similarity based on comparisons of Moore neighborhoods or larger windows), data clustering, data classification, or community detection in a social network (where the vertices represent users of the network, the edges represent links between users, and the weight function indicates the strength of interactions between users).

The main advantage of finite weighted graphs is that by not being restricted to highly regular structures such as discrete regular grids, lattice graphs, or meshes, they can be applied to represent abstract data with irregular interrelationships.

If a finite weighted graph is geometrically embedded in a Euclidean space, i.e., the graph vertices represent points of this space, then it can be interpreted as a discrete approximation of a related nonlocal operator in the continuum setting.

Basic definitions

A finite weighted graph G is defined as a triple G=(V,E,w) for which

  • V={x1,,xn},nβ„•, is a finite set of indices denoted as graph vertices or nodes,
  • EV×V is a finite set of (directed) graph edges connecting a subset of vertices,
  • w:Eℝ is an edge weight function defined on the edges of the graph.

In a directed graph, each edge (xi,xj)E has a start node xiV and an end node xjV. In an undirected graph for every edge (xi,xj) there exists an edge (xj,xi) and the weight function is required to be symmetric, i.e., w(xi,xj)=w(xj,xi).Template:Ref On the remainder of this page, the graphs will be assumed to be undirected, unless specifically stated otherwise. Many of the ideas presented on this page can be generalized to directed graphs.[1]

The edge weight function w associates to every edge (xi,xj)E a real value w(xi,xj)>0. For both mathematical and application specific reasons, the weight function on the edges is often required to be strictly positive and on this page it will be assumed to be so unless specifically stated otherwise. Generalizations of many of the ideas presented on this page to include negatively weighted edges are possible. Sometimes an extension of the domain of the edge weight function to V×V is considered (with the resulting function still being called the edge weight function) by setting w(xi,xj)=0 whenever (xi,xj)∉E.

In applications each graph vertex xV usually represents a single entity in the given data, e.g., elements of a finite data set, pixels in an image, or users in a social network. A graph edge represents a relationship between two entities, e.g. pairwise interactions or similarity based on comparisons of geometric neighborhoods (for example of pixels in images) or of another feature, with the edge weight encoding the strength of this relationship. Most commonly used weight functions are normalized to map to values between 0 and 1, i.e., w:E(0,1].

In the following it is assumed that the considered graphs are connected without self-loops or multiple edges between vertices. These assumptions are mostly harmless as in many applications each connected component of a disconnected graph can be treated as a graph in its own right, each appearance of w(xi,xi) (which would be nonzero in the presence of self-loops) appears in the presence of another factor which disappears when i=j (see the section on differential graph operators below), and edge weights can encode similar information as multiple edges could.

Neighborhood

A node xjV is a neighbor of the node xiV if there exists an edge (xi,xj)E. In terms of notation this relationship can be abbreviated by xjxi, which should be read as "xj is a neighbor of xi". Otherwise, if xj is not a neighbor of xi one writes xj≁xi. The neighborhood 𝒩(xi) of a vertex xiV is simply the set of neighbors 𝒩(xi):={xjV:xjxi}. The degree of a vertex xiV is the weighted size of its neighborhood:

deg(xi):=j:xjxiw(xi,xj).

Note that in the special case where w1 on E (i.e. the graph is unweighted) we have deg(xi):=|𝒩(xi)|.

Space of real vertex functions

Let β„‹(V):={f:Vℝ} be the space of (real) vertex functions. Since V is a finite set, any vertex function fβ„‹(V) can be represented as a n-dimensional vector fℝn (where n:=|V|) and hence the space of vertex functions β„‹(V) can be identified with an n-dimensional Hilbert space: β„‹(V)ℝn. The inner product of β„‹(V) is defined as:

f,gβ„‹(V):=xiVf(xi)g(xi),f,gβ„‹(V).

Furthermore, for any vertex function fβ„‹(V) the p-norm and -norm of f are defined as:

fp={(xiV|f(xi)|p)1p, for 1p< ,maxxiV|f(xi)|, for p= .

The 2-norm is induced by the inner product.

In applications vertex functions are useful to label the vertices of the nodes. For example, in graph-based data clustering, each node represents a data point and a vertex function is used to identify cluster membership of the nodes.

Space of real edge functions

Analogously to real vertex functions, one can introduce the space of real edge functions β„‹(E):={F:Eℝ}. As any edge function F is defined on a finite set of edges E, it can be represented as a m-dimensional vector Fℝm, where m:=|E|. Hence, the space of edge functions β„‹(E) can be identified as a m-dimensional Hilbert space, i.e., β„‹(E)ℝm.

One special case of an edge function is the normalized edge weight function w:E(0,1] introduced above in the section on basic definitions. Similar to that function, any edge function F can be trivially extended to V×V by setting F(xi,xj):=0 if (xi,xj)∉E. The space of those extended edge functions is still denoted by β„‹(E) and can be identified with ℝm, where now m:=|V|2.

The inner product of β„‹(E) is defined as:

F,Gβ„‹(E):=(xi,xj)EF(xi,xj)G(xi,xj),F,Gβ„‹(E).

Additionally, for any edge function Fβ„‹(V) the p-norm and -norm of F are defined as:

Fp={((xi,xj)E|F(xi,xj)|p)1p for 1p< ,max(xi,xj)E|F(xi,xj)|, for p= .

The 2-norm is induced by the inner product.

If one extends the edge set E in a way such that E=V×V than it becomes clear that β„‹(E)ℝn×n because β„‹(V)ℝn. This means that each edge function can be identified with a linear matrix operator.

Differential graph operators

An important ingredient in the calculus on finite weighted graphs is the mimicking of standard differential operators from the continuum setting in the discrete setting of finite weighted graphs. This allows one to translate well-studied tools from mathematics, such as partial differential equations and variational methods, and make them usable in applications which can best be modeled by a graph. The fundamental concept which makes this translation possible is the graph gradient, a first-order difference operator on graphs. Based on this one can derive higher-order difference operators, e.g., the graph Laplacian.

First-order differential operators

Weighted differences

Let G=(V,E,w) be a finite weighted graph and let fβ„‹(V) be a vertex function. Then the weighted difference (or weighted graph derivative) of f along a directed edge (xi,xj)E is

xjf(xi) := w(xi,xj)(f(xj)f(xi)).

For any weighted difference the following properties hold:

  • xif(xj)=xjf(xi),
  • xif(xi)=0,
  • f(xi)=f(xj)xjf(xi)=0.

Weighted gradient

Based on the notion of weighted differences one defines the weighted gradient operator on graphs w:β„‹(V)β„‹(E) as

(wf)(xi,xj) = xjf(xi).

This is a linear operator.

To measure the local variation of a vertex function f in a vertex xiV one can restrict the gradient wf of f to all directed edges starting in xi and using the p-norm of this edge function, i.e.,

(wf)(xi,)p={(xjxiw(xi,xj)p2|f(xj)f(xi)|p)1p for 1p<,maxxjxiw(xi,xj)|f(xj)f(xi)| for p=.

Weighted divergence

The adjoint operator w*:β„‹(E)β„‹(V) of the weighted gradient operator is a linear operator defined by

wf,Gβ„‹(E)=f,w*Gβ„‹(V) for all fβ„‹(V),Gβ„‹(E).

For undirected graphs with a symmetric weight function wβ„‹(E) the adjoint operator w* of a function Fβ„‹(E) at a vertex xiV has the following form:

(w*F)(xi) = 12xjxiw(xi,xj)(F(xj,xi)F(xi,xj)).

One can then define the weighted divergence operator on graphs via the adjoint operator as divw:=w*. The divergence on a graph measures the net outflow of an edge function in each vertex of the graph.

Second-order differential operators

Graph Laplace operator

The weighted graph Laplacian Δw:β„‹(V)β„‹(V) is a well-studied operator in the graph setting. Mimicking the relationship div(f)=Δf of the Laplace operator in the continuum setting, the weighted graph Laplacian can be derived for any vertex xiV as:

(divw(wf))(xi)=12xjxiw(xi,xj)(wf(xj,xi)wf(xi,xj))=12xjxiw(xi,xj)(w(xi,xj)(f(xj)f(xi))w(xj,xi)(f(xi)f(xj)))=12xjxiw(xi,xj)(2f(xj)2f(xi))=xjxiw(xi,xj)(f(xj)f(xi)) =: (Δwf)(xi).

Note that one has to assume that the graph G is undirected and has a symmetric weight function w(xi,xj)=w(xj,xi) for this representation.

Graph p-Laplace operators

The continuous p-Laplace operator is a second-order differential operator that can be well-translated to finite weighted graphs. It allows the translation of various partial differential equations, e.g., the heat equation, to the graph setting.

Based on the first-order partial difference operators on graphs one can formally derive a family of weighted graph p-Laplace operators Δw,p:β„‹(V)β„‹(V) for 1p< by minimization of the discrete p-Dirichlet energy functional

E(f) := 1pxiVwf(xi,)pp.

The necessary optimality conditions for a minimizer of the energy functional E lead to the following definition of the graph p-Laplacian:

(Δw,pf)(xi) := xjxiw(xi,xj)p2|f(xj)f(xi)|p2(f(xj)f(xi)).

Note that the graph Laplace operator is a special case of the graph p-Laplace operator for p=2, i.e.,

(Δw,2f)(xi) = (Δwf)(xi) = xjxiw(xi,xj)(f(xj)f(xi)).

Applications

Calculus on finite weighted graphs is used in a wide range of applications from different fields such as image processing, machine learning, and network analysis. A non-exhaustive list of tasks in which finite weighted graphs have been employed is:

See also

Notes

1.Template:NoteNote that a slightly different definition of undirected graph is also in use, which considers an undirected edge to be a two-set (set with two distinct elements) {xi,xj} instead of a pair of ordered pairs (xi,xj) and (xj,xi). Here the latter description is needed, as it is required to allow edge functions in β„‹(E) (see the section about the space of edge functions) to take different values on (xi,xj) and (xj,xi).

References