Skip to main content
. 2020 Mar 4;22(3):296. doi: 10.3390/e22030296
Algorithm 1 Base graph optimization for a fixed structure of the elastic graph
  • (1)

    Initialize the graph G, its elastic matrix EM(G) and the map φ

  • (2)

    Compute the matrix L˜(EM(G))

  • (3)

    Partition the data by proximity to the embedded nodes of the graph (i.e., compute the mapping K:{X} {V} of a data point i to a graph node j)

  • (4)
    Solve the following system of linear equations to determine the new map φ
    j=1|V|({K(i)=j}wii=1|V|wiδij+L˜(EM(G))ij)ϕ(Vj)=1i=1|V|wiK(i)=jwiXi,
    where δij is the Kronecker delta.

Iterate 3–4 till the map φ does not change more than ε in some appropriate measure of difference between two consecutive iterations.