Initialization

In[403]:=

chordal-usage_1.gif

Usage

In[607]:=

chordal-usage_2.gif

Out[607]=

chordal-usage_3.gif

Make graph' s vertex list sorted

This is helpful when switching between labeled graph and adjacency matrix representation

chordal-usage_4.gif

Out[604]=

chordal-usage_5.gif

Out[606]=

chordal-usage_6.gif

Check if the graph is chordal

In[477]:=

chordal-usage_7.gif

Out[477]=

chordal-usage_8.gif

Find minimum fill triangulation

In[567]:=

chordal-usage_9.gif

Out[569]=

chordal-usage_10.gif

chordal-usage_11.gif

Get perfect elimination ordering, and rearrange graph vertices in elimination order

In[572]:=

chordal-usage_12.gif

Out[573]=

chordal-usage_13.gif

Check that vertices are now in perfect elimination order

In[574]:=

chordal-usage_14.gif

Out[574]=

chordal-usage_15.gif

Get 0 - fill Cholesky factorization of adjacency matrix in perfect elimination order

In[578]:=

chordal-usage_16.gif

Out[581]=

chordal-usage_17.gif

Arrange matrix in minimum fill order

In[641]:=

chordal-usage_18.gif

Out[644]=

chordal-usage_19.gif

Relabel graph vertices in minimum fill order

In[651]:=

chordal-usage_20.gif

Out[652]=

chordal-usage_21.gif

Out[653]=

chordal-usage_22.gif

Get min - fill Cholesky factorization of the matrix

In[675]:=

chordal-usage_23.gif

Out[680]=

chordal-usage_24.gif

Get min - fill triangulation of the corresponding graph

In[697]:=

chordal-usage_25.gif

Out[699]=

chordal-usage_26.gif

Get all maximal cliques of the chordal graph

In[703]:=

chordal-usage_27.gif

Out[704]=

chordal-usage_28.gif

Out[705]=

chordal-usage_29.gif

Get maximal cliques of non-chordal graph

These are cliques that are found using maximum cardinality search

In[708]:=

chordal-usage_30.gif

Out[708]=

chordal-usage_31.gif

Out[709]=

chordal-usage_32.gif

Create chordal graph with given clique-tree structure and tree width

In[717]:=

chordal-usage_33.gif

Out[717]=

chordal-usage_34.gif

Out[718]=

chordal-usage_35.gif

Recover original clique tree structure from a chordal graph

In[722]:=

chordal-usage_36.gif

Out[723]=

chordal-usage_37.gif

Out[724]=

chordal-usage_38.gif

Spikey Created with Wolfram Mathematica 8.0