선정목록으로
Graph skeletonization of high-dimensional point cloud data via topological method
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.20382/jocg.v13i1a16
- 저널
- –
- 발행년도
- 2022
- 발행기관
- –
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://jocg.org/index.php/jocg/article/view/3429
- 토픽
- Electric and Hybrid Vehicle Technologies
- OpenAlex ID
- W6925875069
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Geometric graphs form an important family of hidden structures behind data. In this paper, we develop an efficient and robust algorithm to infer a graph skeleton of a high-dimensional point cloud dataset (PCD). Previously, there has been much work to recover a hidden graph from a low-dimensional density field, or from a relatively clean high-dimensional PCD. Our proposed approach builds upon the recent line of work on using a persistence-guided discrete Morse (DM) theory based approach to reconstruct a geometric graph from a density field defined over a low-dimensional triangulation. In particular, we first give a very simple generalization of this DM-based algorithm from a density-function perspective to a general filtration perspective. On the theoretical front, we show that the output of the generalized algorithm contains a so-called lexicographic-optimal persistent cycle basis w.r.t the input filtration, justifying that the output is indeed meaningful. On the algorithmic front, the generalization allows us to combine sparsified weighted Rips filtration to develop a new graph reconstruction algorithm for noisy point cloud data. The new algorithm is robust to background noise and non-uniform distribution of input points, and we provide various experimental results to show its effectiveness.
본문 125,131자
본문 펼치기
## GRAPH SKELETONIZATION OF HIGH-DIMENSIONAL POINT CLOUD DATA VIA TOPOLOGICAL METHOD ∗
Lucas Magee, <sup>†</sup> Yusu Wang <sup>‡</sup>
October 17, 2022
Abstract
Geometric graphs form an important family of hidden structures behind data. In this paper, we
develop an efficient and robust algorithm to infer a graph skeleton of a high-dimensional point cloud
dataset (PCD). Previously, there has been much work to recover a hidden graph from a low-dimensional
density field, or from a relatively clean high-dimensional PCD. Our proposed approach builds upon
the recent line of work on using a persistence-guided discrete Morse (DM) theory based approach to
reconstruct a geometric graph from a density field defined over a low-dimensional triangulation. In
particular, we first give a very simple generalization of this DM-based algorithm from a density-function
perspective to a general filtration perspective. On the theoretical front, we show that the output of the
generalized algorithm contains a so-called lexicographic-optimal persistent cycle basis w.r.t the input
filtration, justifying that the output is indeed meaningful. On the algorithmic front, the generalization
allows us to combine sparsified weighted Rips filtration to develop a new graph reconstruction algorithm
for noisy point cloud data. The new algorithm is robust to background noise and non-uniform distribution
of input points, and we provide various experimental results to show its effectiveness.
#### 1 Introduction
Modern complex data, or the space where data is sampled from, often has a simpler underlying structure. A
key step in modern data analysis is to model and extract such hidden structures. A particularly interesting
type of non-linear structure is a (geometric) graph skeleton, which can be thought of as a 1-D _singular_
_manifold_, consisting of pieces of 1-manifolds (curves) glued together. Graph structures are common in practice,
such as river networks and dark matter filament structures in cosmology. Graphs can also be natural models
for the evolution of trends behind data (e.g, the evolution of topics in twitter data).
While there has been beautiful work on manifold learning [34, 37, 3, 19], recovering singular manifolds is
more challenging [4]. Nevertheless, recovering a hidden graph skeleton (singular 1-manifolds) from data has
attracted much attention; e.g, in [25, 26, 31]. In general, one of the main challenges involved is to identify
graph nodes and connections among them. Local information is often used to make inference or decisions,
making it hard to handle noise, non-uniform sampling and gaps in data. To this end, topological methods
become useful, as they offer ways to capture the global structure behind data and thus can be robust in
detecting junction nodes and their global connectivity. Indeed, there are several algorithms that extract a
graph skeleton behind point cloud data (PCD) based on topological ideas; e.g. [1, 23, 10, 27]. Unfortunately,
while such approaches work well when the input points are sampled within a tubular neighborhood of the
hidden graph (called tubular or Hausdorff noise), they do not effectively handle more general noise, such as
outliers and background noise. The locally-defined principal curve approach [31] can handle noisy data with
non-tubular noise via a ridge-finding strategy using a constraint mean-shift-like procedure. However, the
procedure only moves points closer to a graph skeleton without outputting an actual graph.
∗This work is partially supported by National Science Foundation (NSF) under grants CCF-2051197, RI-1815697, and
OAC-2107076, and by National Institutes of Health (NIH) under grant RF1MH125317.
†Department of Computer Science and Engineering, University of California, San Diego, lmagee@ucsd.edu
‡Halıcıoğlu Data Science Institute, University of California, San Diego, yusuwang@ucsd.edu
1
Recently, there has been a line of work using a persistence-guided discrete Morse theory based approach
to reconstruct a graph (or even a 2D) skeleton from _density_ _field_ [14, 24, 33, 36, 38]. In particular, assume
that the input is a density field defined on a discretized domain. Such methods use the discrete Morse (DM)
theory to compute the so-called stable 1-manifolds to capture the mountain ridges of the density field and
returns these mountain ridges as the extracted graph skeleton; see Figure 1 for a 2D example. Persistent
homology is used to simplify the resulting stable 1-manifolds. The algorithm based on this idea has been
significantly simplified in [15] together with theoretical analysis. The resulting method (which we will refer to
as DM-graph) can recover a hidden graph from noisy and non-homogeneous density fields, and has already
been applied to several applications in 2D/3D [2, 16, 18]. These graphs have also been used as input for
Graph Neural Networks (GNNs) to generate effective predictive models for rock data [6]. However, this
method currently assumes that one has _a_ _discretization_ _of_ _the_ _ambient_ _space_ _where_ _data_ _is_ _embedded_ _in_, which
becomes prohibitively expensive for high dimensional data, and also cannot be directly applied to metric
data that is not embedded.
New work. We consider the general setting where the input is just a set of points _P_ embedded in a metric
space, say the Euclidean space R <sup>_d_</sup>, or with pairwise distances (or correlations) given. The previous DM-graph
does not work in this setting, and as we will explain later, the straightforward extension is not effective for
high-dimensional PCDs. In this paper, we extend the idea behind the discrete-Morse based approach beyond
density field, and combine it with the so-called sparsified weighted Rips filtration of [5] to develop an effective
and efficient algorithm to infer graph skeletons of high-dimensional PCDs.
More specifically, in Section 3, we view the DM-graph reconstruction method from a filtration perspective
instead of a density perspective, and thus generalize the DM-graph algorithm to work with an arbitrary
filtration (which intuitively is a sequence of growing spaces spanned by our input points in our setting).
We then prove (Theorem 3.5) that the output of the generalized method contains a so-called _lex-optimal_
_persistent_ _cycle_ _basis_ of the given filtration, thereby showing that the output captures meaningful information
w.r.t. the filtration. This result is of independent interest.
We next show how this simple change of view can help us reconstruct the graph skeleton of a set of
points _P_ more efficiently and effectively. In particular, the filtration perspective now allows us to combine
the DM-based graph reconstruction algorithm with a sparsified weighted Rips filtration scheme proposed
by [5], which both improves the quality of the reconstruction and significantly reduces the time complexity.
This new graph reconstruction algorithm for PCDs, called DM-PCD, is our second main contribution and
presented in Section 5.
Finally, we show experimental results on a range of datasets, and compare with previous methods to
demonstrate the effectiveness of our new DM-PCD algorithm. More results are shown in the Appendix.
#### 2 Preliminaries
We now briefly introduce some notions needed to describe the idea behind the DM-graph algorithm of [38, 15].
In this paper we will use the simplicial setting, where the space of interest is modeled by a _simplicial_
_complex_ _K_, consisting of basic building blocks called _simplices_ . Intuitively, a geometric _d_ -simplex is the
convex combination of _d_ + 1 affinely independent vertices: a 0-, 1-, 2-, or 3-simplex is just a vertex, an edge,
a triangle, or a tetrahedron, respectively. Ignoring the geometry, _an_ _abstract_ _d-simplex_ _σ_ = ( _v_ 0 _, . . ., vd_ ) is
simply a set of _d_ + 1 vertices. Any subset _τ_ of the vertices of a _d_ -simplex _σ_ is _a_ _face_ of _σ_, and _τ_ is called a
_facet_ of _σ_ if its dimension is _d −_ 1. A simplicial complex _K_ is a collection of simplices with the property that
if a simplex _σ_ is in _K_, then any of its face must be in _K_ as well. Given a simplicial complex _K_, its _q-skeleton_
_K_ <sup>_q_</sup> consists of all simplices in _K_ of dimension at most _q_ .
2.1 Persistent Homology
Instead of introducing persistent homology in its full general form, below we focus on the simplicial complex
setting. See e.g., [20, 11] for more detailed exposition.
2
Boundaries, cycles, homology groups. Given a simplicial complex _K_, let _K_ <sup>_q_</sup> denote the set of _q_ simplices of _K_ . Under Z2 field coefficient (which we use throughout this paper), a _q_ -chain _C_ = <sup>�</sup> _σ∈K_ <sup>_q cσσ_</sup>
simplices of _K_ . Under Z2 field coefficient (which we use throughout this paper), a _q_ -chain _C_ = <sup>�</sup> _σ∈K_ <sup>_q cσσ_</sup>
where _cσ_ _∈{_ 0 _,_ 1 _}_ ; equivalently _C_ is a subset of _K_ <sup>_q_</sup> (those with _cσ_ = 1). The set of _q_ -chains together with
addition operation gives rise to the so-called _q-th_ _chain_ _group_ C _q_ ( _K_ ). Given any _q_ simplex _σ_, its boundary
_∂qσ_ consists of all of its faces of dimension _q_ -1. This in turn gives a linear map, called the _q_ -th boundary
map _∂q_ : C _q_ ( _K_ ) _→_ C _q−_ 1( _K_ ), where _∂qC_ = <sup>�</sup> _σ∈K_ <sup>1</sup> <sup>_cσ∂q_</sup> <sup>(</sup> <sup>_σ_</sup> <sup>)</sup> <sup>for</sup> <sup>any</sup> <sup>_q_</sup> <sup>-chain</sup> <sup>_C_</sup> <sup>=</sup> <sup>�</sup> _σ∈K_ <sup>_q cσσ_</sup> <sup>.</sup> <sup>A</sup> <sup>_q_</sup> <sup>-chain</sup> <sup>_C_</sup>
map _∂q_ : C _q_ ( _K_ ) _→_ C _q−_ 1( _K_ ), where _∂qC_ = <sup>�</sup> _σ∈K_ <sup>1</sup> <sup>_cσ∂q_</sup> <sup>(</sup> <sup>_σ_</sup> <sup>)</sup> <sup>for</sup> <sup>any</sup> <sup>_q_</sup> <sup>-chain</sup> <sup>_C_</sup> <sup>=</sup> <sup>�</sup> _σ∈K_ <sup>_q cσσ_</sup> <sup>.</sup> <sup>A</sup> <sup>_q_</sup> <sup>-chain</sup> <sup>_C_</sup>
is a _q_ -cycle if its boundary _∂qC_ = 0. The collection of all _q_ -cycles form the _q-th_ _cycle_ _group_ Z _q_ ; that is,
Z _q_ = kernel _∂q_ . A _q_ -chain _C_ is a _q_ -boundary if it is the image of some ( _q_ +1)-chain _C_ <sup>_′_</sup> ; i.e., _C_ = _∂q_ +1 _C_ <sup>_′_</sup> . The
collection of _q_ -boundaries form the _q-th_ _boundary_ _group_ B _q_ ; that is, B _q_ = image _∂q_ +1. By the fundamental
property of boundary map, i.e, _∂q ◦_ _∂q_ +1 = 0, it follows that B _q_ is a subgroup of Z _q_ . The _q-th_ _homology_ _group_
H _q_ is defined as H _q_ = Z _q/_ B _q_ . In particular, given any _q_ -cycle _C_, its homology class [ _C_ ] is the equivalent class
of all _q_ -cycles in _q_ + B _q_ ( _K_ ); and two _q_ -cycles _C_ 1 _, C_ 2 are homologous if [ _C_ 1] = [ _C_ 2], implying that _C_ 1 + _C_ 2 is
a boundary (i.e, _C_ 1 + _C_ 2 _∈_ B _q_ ( _K_ )). The _q-th_ _homology_ _classes_ intuitively capture _q_ -dimensional “holes" in
_K_ ; i.e., connected components (0D), loops (1D), closed surfaces that are not “filled" (2D) and their higher
dimensional analogs. The _q_ th homology group is the vector space spanned by such topological features, and
its rank, called the _q-th_ _Betti_ _number_ _βq_ ( _K_ ), gives the number of independent topological "holes".
_σ∈K_ <sup>1</sup> <sup>_cσ∂q_</sup> <sup>(</sup> <sup>_σ_</sup> <sup>)</sup> <sup>for</sup> <sup>any</sup> <sup>_q_</sup> <sup>-chain</sup> <sup>_C_</sup> <sup>=</sup> <sup>�</sup>
Filtration, persistent modules. Suppose we have a finite sequence of simplicial complexes connected by
inclusions, called a _filtration_ _of_ _K_, denoted by _F_ : _K_ 1 _⊆_ _K_ 2 _⊆· · · Km_ = _K._ Applying the homology functor
to this sequence (with Z2 coefficients), we obtain a sequence of vector spaces (over field Z2) connected by
linear maps induced from inclusions, which is called a persistence module; in particular, for any dimension
_q_ _≥_ 0, we have:
P _F_ : H _q_ ( _K_ 1) _→_ H _q_ ( _K_ 2) _→· · · →_ H _q_ ( _Km_ ) _._
where maps are induced by inclusions. In our paper, we assume that the persistence module is indexed by a
finite set [1 _, m_ ] instead of Z.
A special class of persistence modules is the so-called _interval_ _modules_ . (i) _Ii_ = Z2 for any _ℓ_ _∈_ [ _s, t_ ] and
_Ii_ = 0 otherwise; and (ii) _ν_ <sup>_i,j_</sup> is identity map for _s ≤_ _i ≤_ _j_ _≤_ _t_ and 0 map otherwise. We abuse the notation
slightly and allow _t_ = _∞_, in which case the interval is really [ _s, ∞_ ). A pictorial version of an interval module
is as follows:
_· · · →_ 0 _→_ Z2 _→_ Z2 _→· · ·_ Z2 _→_ 0 _→· · ·_ _._
Persistence diagram. It turns out that a given persistence module V can be uniquely decomposed into
direct sums of interval modules (up to isomorphisms) V = <sup>�</sup> [ _b,d_ ] _∈J_ <sup>I[</sup> <sup>_b,d_</sup> <sup>],</sup> <sup>where</sup> <sup>_J_</sup> <sup>is</sup> <sup>a</sup> <sup>multiset</sup> <sup>of</sup> <sup>intervals</sup>
direct sums of interval modules (up to isomorphisms) V = <sup>�</sup> [ _b,d_ ] _∈J_ <sup>I[</sup> <sup>_b,d_</sup> <sup>],</sup> <sup>where</sup> <sup>_J_</sup> <sup>is</sup> <sup>a</sup> <sup>multiset</sup> <sup>of</sup> <sup>intervals</sup>
_J_ = _{_ [ _b, d_ ] _}_ . We call <sup>�</sup> [ _b,d_ ] _∈J_ <sup>I[</sup> <sup>_b,d_</sup> <sup>]</sup> <sup>the</sup> <sup>interval</sup> <sup>decomposition</sup> <sup>of</sup> <sup>V.</sup> <sup>Again,</sup> <sup>note</sup> <sup>that</sup> <sup>the</sup> <sup>intervals</sup> <sup>in</sup> <sup>_J_</sup> <sup>could</sup>
_J_ = _{_ [ _b, d_ ] _}_ . We call <sup>�</sup> [ _b,d_ ] _∈J_ <sup>I[</sup> <sup>_b,d_</sup> <sup>]</sup> <sup>the</sup> <sup>interval</sup> <sup>decomposition</sup> <sup>of</sup> <sup>V.</sup> <sup>Again,</sup> <sup>note</sup> <sup>that</sup> <sup>the</sup> <sup>intervals</sup> <sup>in</sup> <sup>_J_</sup> <sup>could</sup>
be of two forms: [ _b, d_ ] for finite _b, d_ _∈_ Z, and [ _b, ∞_ ); the former is called a _finite_ _interval_ . Note that each
interval [ _b, d_ ] can also be viewed as a point in R <sup>2</sup> . Given a filtration _F_, its _persistence_ _diagram_ dgm _F_ is the
multiset of points in _J_ where P _F_ = <sup>�</sup> [ _b,d_ ] _∈J_ <sup>I[</sup> <sup>_b,d_</sup> <sup>]</sup> <sup>is</sup> <sup>the</sup> <sup>interval</sup> <sup>decomposition</sup> <sup>of</sup> <sup>P</sup> <sup>_F_</sup> <sup>.</sup> <sup>Each</sup> <sup>point</sup> <sup>in</sup> <sup>_J_</sup> <sup>is</sup>
multiset of points in _J_ where P _F_ = <sup>�</sup> [ _b,d_ ] _∈J_ <sup>I[</sup> <sup>_b,d_</sup> <sup>]</sup> <sup>is</sup> <sup>the</sup> <sup>interval</sup> <sup>decomposition</sup> <sup>of</sup> <sup>P</sup> <sup>_F_</sup> <sup>.</sup> <sup>Each</sup> <sup>point</sup> <sup>in</sup> <sup>_J_</sup> <sup>is</sup>
called a _persistence_ _point_ . Assuming that we are given a monotone function _f_ : Z _→_ R, then the persistence
of p = [ _b, d_ ] _∈_ dgm _F_ w.r.t. _f_ is defined as pers(p) = _f_ ( _d_ ) _−_ _f_ ( _b_ ) <sup>1</sup> . To make the dependency on the function
_f_ explicit, we now write the filtration together with this function as _Ff_, and the persistence diagram is
denoted by dgm _Ff_ . For example, a common choice of _f_ in the literature is simply _f_ ( _i_ ) = _i_ .
Simplex-wise setting. In the remainder of this paper, we assume that we are given a _simplex-wise filtration_
_F_ of _K_, such that there is an ordering of all simplices in _K_, _σ_ 1 _, . . ., σN_, and the filtration is given by:
_F_ : _∅_ = _K_ 0 _⊂_ _K_ 1 _⊂· · · ⊂_ _KN_ = _K,_ where _Ki_ := _{σ_ 1 _, . . ., σi}._ (1)
Suppose we are also given a monotone function _ρ_ : [1 _, N_ ] _→_ R (i.e, _ρ_ ( _j_ ) _≥_ _ρ_ ( _i_ ) for _j_ _> i_ ), which we use to
define the persistence of points in the persistence diagram dgm _Fρ_ . (If no function _ρ_ is explicitly given, we
take _ρ_ to be _ρ_ ( _i_ ) = _i_ .)
1We note that in the literature, the persistence of a pair is often defined using some indices (Z or R) of the filtration. Here we
decouple the two to make the presentation cleaner.
3
Furthermore, note that for any _i_, _Ki_ is obtained by adding _σi_ to _Ki−_ 1. Let ind : _K_ _→_ [1 _, N_ ] be this
bijection, where we set ind( _σi_ ) = _i_ . That is, ind( _σ_ ) in general is the index of simplex _σ_ in the ordered sequence
of simplices that induce simplex-wise filtration _F_ ; or, the time it will be inserted into a complex (i.e _K_ ind( _σ_ ))
in the filtration. Given this bijection, a function on the simplices in _K_ also gives rise to a function on [1 _, N_ ].
In what follows, for convenience, we do not differentiate a function on simplices in _K_ and a function on [1 _, N_ ];
that is, _ρ_ ( _σ_ ) = _ρ_ (ind( _σ_ )), and if simplices are ordered as in Eqn (1), then _ρ_ ( _σi_ ) = _ρ_ ( _i_ ). If _ρ_ is defined on
simplices in _K_, we also call it a _simplex-wise_ _function_ _ρ_ : _K_ _→_ R.
Given any persistence point [ _b, d_ ] _∈_ dgm _Fρ_ with _b, d ∈_ [1 _, N_ ], we say its corresponding _persistence_ _pair_ is
( _σb, σd_ ) and it is necessary that _dim_ ( _σd_ ) = _dim_ ( _σb_ )+1. We set pers( _σb_ ) = pers( _σd_ ) = pers([ _b, d_ ]) = _ρ_ ( _d_ ) _−ρ_ ( _b_ ).
If _d_ = _∞_, then we say _σb_ is unpaired, and pers( _σb_ ) = _ρ_ ( _∞_ ) := _∞_ . Finally, consider each persistence pair
( _σ, τ_ ), we say that _σ_ is _positive_ and _τ_ is _negative_, as the _q_ -simplex _σ_ will create a new homology class that
will become trivial (be killed) when the ( _q_ +1)-simplex _τ_ is added to the filtration.
A common way to induce a filtration is via a descriptor function _ρ_ : _V_ ( _K_ ) _→_ R given at vertices _V_ ( _K_ ) of
_K_ . For simplicity of presentation, assume that _ρ_ is _injective_ . We can extend _ρ_ to a simplex-wise function
_ρ_ : _K_ _→_ R by setting _ρ_ ( _σ_ ) = _maxv∈σρ_ ( _v_ ). Consider an ordering of simplices _Sρ_ : _σ_ 1 _, . . ., σm_ that is _consistent_
_with_ _ρ_ ; i.e, (i) _ρ_ ( _σi_ ) _≤_ _ρ_ ( _σj_ ) for any _i ≤_ _j_ and (ii) for any simplex _σi_, its faces appear before it in the ordering.
This order induces the so-called _lower-star_ _filtration_ _Fρ_ w.r.t. _ρ_ . That is, assume _ρ_ ( _v_ 1) _<_ _. . ._ _<_ _ρ_ ( _vn_ ).
Intuitively, we inspect the domain in increasing values of _ρ_ and the lower-star filtration is obtained by adding
each vertex _vi_ and its lower-star (simplices incident on _vi_ with function value at most _ρ_ ( _vi_ )) in ascending
order of _i_ . The persistence diagram dgm _pFρ_ encodes birth and death of features during this course. In this
case, we modify the persistence to reflect function values: For a persistence point ( _b, d_ ) _∈_ dgm _pFρ_, we set
pers(( _b, d_ )) = pers(( _σb, σd_ )) := _|ρ_ ( _σd_ ) _−_ _ρ_ ( _σb_ ) _|_ . Features with large persistence survive for a long range of
function values and are considered as more important w.r.t. _ρ_ .
2.2 Discrete Morse Theory
Below we very briefly introduce some concepts from discrete Morse theory, so that we can introduce both the
original algorithm of [38] (to provide intuition) and the simplified algorithm of [15]. See [21, 22] for more
detailed exposition of discrete Morse theory.
We again consider the simplicial complex setting. Given a simplicial complex _K_, a _discrete_ _gradient_
_vector_ is a combinatorial pair of simplices ( _σ_ <sup>_q_</sup> _, τ_ <sup>_q_</sup> <sup>+1</sup> ) where _σ_ is a face of _τ_ of co-dimension 1 (i.e, _σ_ is a
vertex of an edge _τ_, or an edge of a triangle _τ_ ), and we sometimes include the superscript to make its
dimension explicit. Given a collection _M_ ( _K_ ) of such discrete gradient vectors over _K_, a _V-path_ is a sequence
of simplices of alternating dimensions: _σ_ 1 <sup>_q, τ_</sup> 1 <sup>_q_</sup> <sup>+1</sup> _, . . ., σℓ_ <sup>_q, τ_</sup> _ℓ_ <sup>_q_</sup> <sup>+1</sup> _, σℓ_ <sup>_q_</sup> +1 <sup>such</sup> <sup>that</sup> <sup>for</sup> <sup>each</sup> <sup>_i ∈_</sup> <sup>[1</sup> <sup>_, ℓ_</sup> <sup>],</sup> <sup>we</sup> <sup>have</sup> <sup>(1)</sup>
( _σi_ <sup>_q, τ_</sup> _i_ <sup>_q_</sup> <sup>+1</sup> ) _∈_ _M_ ( _K_ ) and (2) _σi_ <sup>_q_</sup> +1 <sup>is</sup> <sup>a</sup> <sup>face</sup> <sup>of</sup> <sup>_τ q_</sup> _i_ <sup>+1</sup> . We say that a V-path as above is a _non-trivial_ _closed_
_V-path_ (or _cyclic_ ) if _σ_ 1 = _σℓ_ +1; otherwise, it is _acyclic_ .
Definition 2.1 (Discrete Morse gradient vector field) . _A_ _collection_ _of_ _discrete_ _gradient_ _vectors_ _M_ ( _K_ ) _of_ _K_
_is_ _a_ discrete Morse gradient vector field _,_ _or_ DM-vector field _for_ _short,_ _if_ _(i)_ _any_ _simplex_ _in_ _K_ _is_ _in_ _at_ _most_
_one_ _vector_ _in_ _M_ ( _K_ ) _;_ _and_ _(ii)_ _no_ _V-path_ _in_ _M_ ( _K_ ) _is_ _cyclic._
_A_ _simplex_ _in_ _K_ _is_ critical _w.r.t._ _a_ _DM-vector_ _field_ _M_ ( _K_ ) _if_ _it_ _does_ _not_ _appear_ _in_ _any_ _gradient_ _vector_ _in_
_M_ ( _K_ ) _._
Now suppose we are given a critical edge _e_ in _M_ ( _K_ ). The _stable_ _1-manifold_ of _e_ is the union of vertex-edge
V-paths _v_ 1 _, e_ 1 _, . . ., vℓ, eℓ, vℓ_ +1 such that _v_ 1 is an endpoint of _e_, while _vℓ_ +1 is a critical vertex. Such stable
1-manifolds correspond to the "valley ridges" in a continuous function _f_ : R <sup>_d_</sup> _→_ R (the graph of which can be
viewed as a terrain), connecting index-1 saddles with minima. They are the opposite of "mountain ridges"
(unstable 1-manifolds), connecting saddles to maxima and separating different valleys.
Finally, we note that there is a _Morse_ _cancellation_ operation that allows one to cancel a pair of critical
simplices, and thus reduce both the number of critical simplices as well as the complexity of (un)stable
1-manifolds. In particular, a pair of critical simplices _⟨σ_ <sup>_q_</sup> _, τ_ <sup>_q_</sup> <sup>+1</sup> _⟩_ is _cancellable_ if there is a unique V-path
_σ_ 1 _, τ_ 1 _..., σℓ, τℓ, σℓ_ +1 = _σ_ <sup>_q_</sup> in _M_ ( _K_ ) such that _σ_ 1 is a face of _τ_ <sup>_q_</sup> <sup>+1</sup> . The Morse cancellation operation will
essentially invert the gradient vectors along this V-path and render _σ_ <sup>_q_</sup> and _τ_ <sup>_q_</sup> <sup>+1</sup> no longer critical afterwards.
4
1 <sup>_q, τ_</sup> 1 <sup>_q_</sup> <sup>+1</sup> _, . . ., σℓ_ <sup>_q_</sup>
_ℓ_ <sup>_q, τ_</sup> _ℓ_ <sup>_q_</sup> <sup>+1</sup>
_ℓ_ <sup>_q_</sup> <sup>+1</sup> _, σℓ_ <sup>_q_</sup>
_i_ <sup>_q, τ_</sup> _i_ <sup>_q_</sup> <sup>+1</sup>
_i_ <sup>_q_</sup> <sup>+1</sup> ) _∈_ _M_ ( _K_ ) and (2) _σi_ <sup>_q_</sup>
_i_ <sup>_q_</sup> +1 <sup>is</sup> <sup>a</sup> <sup>face</sup> <sup>of</sup> <sup>_τ q_</sup> _i_ <sup>+1</sup>
### (A) (B) (C) (D)
_t1_
_t2_
_e1_
_v_
_v_
_t2_
_x_
_e2_
Figure 1: A practical example of DM graph reconstruction. (A) The image (downloaded from `www.brainimagelibrary.`
`org/` ) contains neuronal branches that we aim to reconstruct. (B) View the image as a density function, we show the
graph of this function, and mountain ridges of this terrain. (C) These ridges capture potential neuronal branches in
the image in (A). (D) Gradient and the integral line passing _x_ . Dashed curves are union of unstable 1-manifolds.
2.3 Graph Reconstruction Algorithm for Density Field Based on Morse Theory
Below we first introduce the intuition behind the original discrete Morse based graph reconstruction algorithm
from density field by [36, 38] in the smooth setting. We will then describe the discrete setting, and its
simplification DM-graph by [15]. First, assume we are given a smooth function _ρ_ : Ω _→_ R on a hypercube Ω
in R <sup>_d_</sup> . View _ρ_ as a density function which concentrates around a hidden geometric graph (e.g, Figure 1 (A)
where Ω _⊂_ R <sup>2</sup> ). Consider the graph of this function _{_ ( _x, ρ_ ( _x_ )) _| x ∈_ Ω _}_, which is a terrain in R <sup>_d_</sup> <sup>+1</sup> and which
we will refer to as the terrain of _ρ_ ; see Figure 1 (B). Intuitively, the "mountain ridge" of this terrain identifies
the hidden graphs, as locally on the hidden graph, the density should be higher than points off it. To capture
these mountain ridges, one can use the so-called _unstable_ _1-manifolds_ of the function _ρ_ as in [36, 38].
Roughly speaking, given _ρ_, the gradient vector at _x ∈_ Ω, _∇ρ_ ( _x_ ) = _−_ [ _∂_ <sup>_<u>∂ρ</u>_</sup> x1 <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_, . . .,_</sup> _∂_ <sup>_<u>∂ρ</u>_</sup> x _d_ <sup>(</sup> <sup>_x_</sup> <sup>)]</sup> <sup>_T_</sup> <sup>,</sup> <sup>indicates</sup> <sup>the</sup>
steepest descending direction of _ρ_ at _x_ . See Figure 1 (D). _Critical_ _points_ of _ρ_ are points whose gradient vector
vanishes. For a smooth function on _d_ -D domain, non-degenerate critical points include minima, maxima, and
_d_ -1 types of saddle points. An integral line is intuitively the flow-line traced out by following the gradient
direction at every point. Flow-lines (integral lines) start and end (in the limit) at critical points. The _unstable_
_1-manifold_ of a saddle (of index _d_ -1) is the union of flow-lines starting at some maximum and ending at this
saddle. Intuitively, unstable 1-manifolds connect mountain peaks to saddles to peaks, separating different
valleys (around minima), and thus can be used to capture mountain ridges.
Hence one can compute the union of unstable 1-manifolds of _ρ_ as its graph skeleton. Furthermore, the
density map _ρ_ may be noisy. To denoise the graph skeleton, previous approaches use persistent homology to
keep only unstable 1-manifolds corresponding to "important" saddles.
Algorithm in the discrete setting. In the discrete setting imagine _K_ is the 2-skeleton of a domain Ω of
interest, _ρ_ is a density function defined on Ω but is only accessible at vertices _V_ ( _K_ ) of _K_, i.e., _ρ_ : _V_ ( _K_ ) _→_ R.
Algorithm firstDM-graph( _K, ρ_ : _V_ ( _K_ ) _→_ R _, δ_ ) will output a graph consisting of edges of _K_ capturing a graph
skeleton of the density field _ρ_ by the following three steps:
- (Step 1): Compute persistence pairing _P_ induced by the lower-star filtration w.r.t. - _ρ_ .
Specifically, we use _f_ = _−ρ_ as it is easier to algorithmicly compute the discrete analog of "valley ridges"
using discrete Morse theory than "mountain ridges" - The valley ridges are the stable 1-manifolds
(vertex-edge V-paths) for critical edges, and thus only 2-skeleton of input complex _K_ is needed. To
compute the importance of critical points in the simplicial setting when we are given _f_ : _V_ ( _K_ ) _→_ R, we
use the standard lower-star filtration to simulate the so-called sublevel-set filtration in the smooth case.
In particular, given _f_ : _V_ ( _K_ ) _→_ R, let _v_ 1 _. . . vn_ be the set of vertices in _K_ sorted in non-decreasing
order of _f_ values. Given any vertex _vi_ _∈_ _V_ ( _K_ ), its _lower-star_ lowSt( _vi_ ) consists of the set of simplices
incident on _vi_ spanned by only vertices from _Vi_ := _{v_ 1 _, . . ., vi}_ . The lower-star filtration w.r.t. _f_ is the
5
Roughly speaking, given _ρ_, the gradient vector at _x ∈_ Ω, _∇ρ_ ( _x_ ) = _−_ [ _∂_ <sup>_<u>∂ρ</u>_</sup> x
_∂_ <sup>_<u>∂ρ</u>_</sup> x1 <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_, . . .,_</sup> _∂_ <sup>_<u>∂ρ</u>_</sup> x _d_
following:
_K_ �1 _⊂_ _K_ �2 _⊂· · ·_ _K_ - _n_ = _K_ ; where _Ki_ = _Ki−_ 1 _∪_ lowSt( _vi_ ) _._ (2)
Equivalently, we can think that this filtration is induced by a simplex-wise function _f_ <sup>ˆ</sup> : _K_ _→_ R where
_f_ ˆ( _σ_ ) = maxvertex _v_ of _σ f_ ( _v_ ).
- (Step 2): Initialize vector field _M_ ( _K_ ) to be the trivial one where all simplices are critical. Then in
order of increasing persistence, for each pair ( _σ, τ_ ) _∈P_ with pers( _σ, τ_ ) _≤_ _δ_, perform discrete Morse
cancellation and update _M_ ( _K_ ) if possible. Intuitively, this is to simplify and remove "not-important"
critical points.
- (Step 3): Output the graph _Gδ_ = <sup>�</sup>
_e∈K,_ pers( _e_ ) _>δ_ <sup>_{_</sup> <sup>stable</sup> <sup>1-manifold</sup> <sup>of</sup> <sup>_e}_</sup> <sup>.</sup>
In particular, we only consider critical edges that are "important" (i.e., pers _> δ_ ). Then we trace the
valley ridges (stable 1-manifolds) connecting them to minima. These minima - which have persistence
greater than _δ_ - are the topographically prominent peaks of _ρ_ .
Simplified algorithm. It turns out that algorithm firstDM-graph() can be significantly simplified [15].
In particular, one does not need to explicitly maintain any discrete Morse gradient vector field at all. See
Algorithm DM-graph() below.
Algorithm 1: DM-graph( _K, ρ, δ_ )
Input: Triangulation _K_, density function _ρ_ : _V_ ( _K_ ) _→_ R, persistence threshold _δ_
Output: a graph skeleton _Gδ_
(Step 1) Compute persistence pairing _P_ induced by the lower star filtration w.r.t. - _ρ_,
(Step 2) Set _Tδ_ := _{e ∈_ _E_ _| e_ is negative and pers( _e_ ) _≤_ _δ}_
For each component (tree) _T_ in _Tδ_, set its root to be _r_ ( _T_ ) := argmin _v∈T_ - _ρ_ ( _v_ ).
(Step 3) Let _πT_ ( _x, y_ ) be the tree path from _x_ to _y_ in a tree _T_ . Output:
_Gδ_ =
_e_ =( _u,v_ ) _,_ pers( _e_ ) _>δ_
_{e ∪_ _πTi_ 1 ( _u, r_ ( _Ti_ 1)) _∪_ _πTi_ 2 ( _v, r_ ( _Ti_ 2)) _| u ∈_ _Ti_ 1 _, v_ _∈_ _Ti_ 2 in _Tδ}._ (3)
In particular, in (Step 3) above, we only consider critical edges with pers _> δ_, and their stable 1-manifolds
turn out to be the union of tree paths as specified in Eqn (3). Note that (Step 2, 3) can be implemented in
time linear to the number of vertices and edges in _K_ .
#### 3 Generalized Algorithm and Optimality
Now suppose instead of a triangulation of a _d_ -D domain Ω, we have an arbitrary simplicial complex _K_ - our
algorithm only needs its 2-skeleton _K_ = ( _V, E, T_ ). Suppose further that there is a simplex-wise function
_ρ_ - : _K_ _→_ R. Let Π _ρ_ - := _⟨σ_ 1 _, . . ., σN_ _⟩_ be an ordered sequence of simplicies of _K_ that is _consistent_ _with_ _ρ_ - (see
the end of Section 2.1), and let _Fρ_ - be the simplex-wise filtration of _K_ induced by this order Π _ρ_ �. (We will
describe in Section 5 how to set up this filtration for graph skeletonization from PCDs.) We now generalize
algorithm DM-graph() to the following extDM-graph(), where essentially, only (Step 1) differs by taking an
arbitrary simplex-wise filtration _Fρ_ �, which we state in Algorithm 2 for clarity.
It is easy to verify that the original DM-graph( _K, ρ, δ_ ) algorithm is a special case of the above algorithm,
where we set _Fρ_ - in extDM-graph( _K, Fρ_ - _, δ_ ) to be the lower-star filtration induced by the vertexwise function
_ρ_ <sup>_′_</sup> = _−ρ_ : _V_ ( _K_ ) _→_ R; specifically, for any simplex _σ_ _∈_ _K_, set _ρ_ �( _σ_ ) := max _v∈σ −ρ_ ( _v_ ). The difference between
our extDM-graph() algorithm and the original algorithm is rather minor. However, we will see that this
change of perspective (from density-function based view to arbitrary filtration-based view) significantly
broadens the applicability of this algorithm. In particular, in Section 5 we will show how this generalized
algorithm can be combined with weighted Rips sparsification strategy to reconstruct a hidden graph skeleton
6
Algorithm 2: extDM-graph( _K, Fρ_ <u>�</u> _, δ_ )
Input: Arbitrary simplex-wise filtration _Fρ_ - of a simplicial complex _K_ = ( _V, E, T_ ), threshold _δ_
Output: A reconstructed graph _Gδ_
(Step 1) Compute persistence pairings w.r.t. _Fρ_ (Step 2) + (Step 3): same as in alg. DM-graph
of high-dimensional points data. But first, in what follows, we provide some characterization of the graph
skeleton output by extDM-graph. Specifically, we show that the output of extDM-graph() contains the so-called
_lex-optimal_ cycle basis of _K_ w.r.t. important 1D homological features in dgm1 _Fρ_ �. To make this statement
more precise, we first introduce some notations, following [13, 17, 39]. Intuitively, a 1-cycle is a collection of
edges forming one or multiple closed loops; and a _d_ -cycle is a _d_ -D analog of it.
Definition 3.1 (Persistent cycles [17]) . _Let_ _F_ _be_ _a_ _simplexwise_ _filtration_ _of K_ _induced_ _by_ _the_ _ordered_ _sequence_
_of_ _simplices_ _σ_ 1 _, . . ., σN_ _,_ _and_ dgm _qF_ _its_ _resulting_ _q-th_ _persistence_ _diagram._ _Given_ _a_ _point_ p = [ _b, d_ ] _∈_ dgm _qF,_
_a_ _q-cycle_ _γ_ _is_ a persistent _q_ -cycle w.r.t. p _if_ _(i)_ _if_ _d̸_ = _∞,_ _γ_ _is_ _a_ _cycle_ _in_ _Kb_ _containing_ _σb,_ _and_ _γ_ _is_ _not_
_a_ _boundary_ _in_ _Kd−_ 1 _but_ _becomes_ _a_ _boundary_ _in_ _Kd;_ _and_ _(ii)_ _otherwise_ _if_ _d_ = _∞,_ _then_ _γ_ _is_ _a_ _cycle_ _in_ _Kb_
_containing_ _σb._
_Given_ _a_ _subset_ _D_ = _{_ p1 _, . . .,_ p _r} ⊆_ dgm _qF_ _with_ _r_ = _|D|,_ _we_ _say_ _that_ _a_ _set_ _of_ _cycles_ _{γ_ 1 _, . . ., γr}_ _form_ _a_
persistent cycle-basis _for_ _D_ _if_ _γi_ _is_ _a_ _persistence_ _cycle_ _w.r.t._ p _i_ _for_ _all_ _i ∈_ [1 _, r_ ] _._
Roughly speaking, a persistent cycle _γ_ w.r.t. a persistence point p = [ _b, d_ ] is created at _b_ and killed at _d_,
and can be thought of a representative of the homological feature captured by point p _∈_ dgm _F_ . A persistent
cycle basis w.r.t. _D_ _⊂_ dgm _F_ corresponds to representative cycles captured by points in _D_ . More specifically,
given a cycle _γ_, let [ _γ_ ] _Ki_ denote the homology class of _γ_ in complex _Ki_ . The following result from [17]
intuitively says that a persistence cycle-basis for dgm _qF_ essentially generates the interval decomposition of
persistence module P _F_ .
Claim 3.2 ([17]) . _Let_ _{γ_ 1 _, . . ., γg}_ _be_ _a_ _persistence_ _cycle-basis_ _for_ dgm _qF_ = _{_ p1 _, . . .,_ p _g}_ _and_ _g_ = _|_ dgm _qF|._
_νi,j_
_Then_ P _F_ = <sup>�</sup> p _ℓ∈_ dgm _qF_ <sup>Ip</sup> <sup>_ℓ,_</sup> <sup>_where_</sup> <sup>_the_</sup> <sup>_interval_</sup> <sup>_module_</sup> <sup>Ip</sup> <sup>_ℓ_</sup> <sup>=</sup> <sup>_{Ii_</sup> _−→_ _Ij}i≤j_ _is_ _generated_ _by_ _γℓ_ _in_ _the_ _sense_
_that_ _Ii_ = [ _γℓ_ ] _Ki._
_Then_ P _F_ = <sup>�</sup>
p _ℓ∈_ dgm _qF_ <sup>Ip</sup> <sup>_ℓ,_</sup> <sup>_where_</sup> <sup>_the_</sup> <sup>_interval_</sup> <sup>_module_</sup> <sup>Ip</sup> <sup>_ℓ_</sup> <sup>=</sup> <sup>_{Ii_</sup>
Lexicographic optimal cycles are introduced in [12, 13]. We will extend them to the persistence version.
Given a simplex-wise filtration _F_ of _K_ induced by an ordering of simplices _σ_ 1 _, . . ., σN_, we set ind( _σ_ ) as the
order it appears in _F_ ; i.e, ind( _σi_ ) = _i_ .
Definition 3.3 (Lexicographic order [13]) . _Given_ _two_ _q-cycles_ _C_ 1 _, C_ 2 _∈_ C _q_ ( _K_ ) _,_ _we_ _say_ _that_ _C_ 1 _⪯C_ 2 _if_ _either_
_(i)_ _C_ 1 + _C_ 2 = 0 _or_ _(ii)_ _otherwise,_ _the_ _simplex_ _σmax_ := argmax _σ∈C_ 1+ _C_ 2ind( _σ_ ) _is_ _from_ _C_ 2 _._ _If_ _(ii)_ _holds,_ _we_ _say_
_that_ _C_ 1 _≺C_ 2 _,_ _i.e.,_ _C_ 1 _is_ smaller than _C_ 2 in lexicographic order _._ _Intuitively,_ _C_ 1 _⪯C_ 2 _if_ _simplices_ _in_ _C_ 1 _comes_
_"earlier"_ _than_ _C_ 2 _in_ _the_ _filtration_ _order._
Definition 3.4 (Lex-optimal persistent cycles) . _Given_ _a_ _persistence_ _point_ p = [ _b, d_ ] _∈_ dgm _qF_ _,_ _a_ _q-cycle_ _γ_ _is_
_a_ lexicographic-optimal (lex-opt for short) persistent cycle w.r.t. p _if_ _(i)_ _γ_ _is_ _a_ _persistent_ _cycle_ _w.r.t._ p _;_ _and_
_(ii)_ _among_ _all_ _persistence_ _cycles_ _w.r.t._ p _,_ _γ_ _has_ _the_ _smallest_ _lexicographic_ _order._ _We_ _say_ _that_ Γ = _{γ_ 1 _, . . ., γr}_
_forms_ _a_ lex-optimal persistent cycle basis _for_ _a_ _multiset_ _D_ = _{_ p1 _, . . .,_ p _r}_ _⊆_ dgm _qF_ _if_ _γi_ _is_ _a_ _lex-optimal_
_persistence_ _cycle_ _w.r.t_ p _i_ _for_ _all_ _i ∈_ [1 _, r_ ] _._
Given a _q_ -th persistence diagram dgm _qF_ and a threshold _δ_, let dgm _qF_ ( _δ_ ) _⊆_ dgm _qF_ denote the subset of
points in dgm _qF_ whose persistence is larger than _δ_ (intuitively, these corresond to important features). Our
first main result is the following theorem.
Theorem 3.5. _(i)_ _Gδ_ _as_ _constructed_ _w.r.t._ _a_ _simplex-wise_ _filtration_ _Fρ_ _contains_ _a_ _lex-optimal_ _persistence_
_cycle_ _basis_ _for_ dgm1 _Fρ_ ( _δ_ ) _,_ _and_ _(ii)_ _the_ _first_ _Betti_ _number_ _of_ _Gδ_ _equals_ _|_ dgm1 _Fρ_ ( _δ_ ) _|._
The above theorem suggests that the output graph _Gδ_ by our algorithm extDM-graph() contains the
"best" loops whose homology classes have large persistence and whose edges come _as_ _early_ _as_ _possible_ _in_ _the_
7
_w_ 1
_C_ 2
_K_ b _′_ _K_ b
_· · · →_ _K_ id( _e′_ ) _→· · · →_ _K_ id( _eℓ_ ) _→· · · · →_ _K_ d _−_ 1 _→_ _K_ d _→· · ·_
d <sup>_′_</sup> _−_ b <sup>_′_</sup> _< δ_
d _−_ b _≥_ _δ_
_w_ 2
_C_ 4
_w_ 4
_C_ 1
_C_ 3
_w_ 3
(a) (b)
Figure 2: (a) The solid red curve is _Gδ_, while dashed trees are components in _G_ <sup>�</sup> _δ \ Gδ_ . The closure of each
component _Ci_ connects to _Gδ_ at one point _wi_, and thus its closure can deformation retracts to _wi_ _∈_ _Gδ_ . (b)
As pers( _e_ <sup>_′_</sup> ) = d <sup>_′_</sup> _−_ b <sup>_′_</sup> _≤_ _δ_, and pers(e _ℓ_ ) = d _−_ b _> δ_, and b <sup>_′_</sup> (= ind( _e_ <sup>_′_</sup> )) _≤_ b, it then follows that the persistent
cycle _C_ <sup>_′_</sup> = _π_ ( _u, v_ ) + _e_ <sup>_′_</sup> must become a boundary in the simplicial complex _K_ d _−_ 1, which in turn leads to that
[ _γ_ <sup>_′_</sup> ] = [ _γ_ <sup>_∗_</sup> ] in _K_ d _−_ 1.
_filtration_ . In particular, imagine that important edges or more faithful edges come early in the filtration,
then the output graph contains those loops with large persistence ( _> δ_ ) and formed by more faithful edges
whenever possible. In the graph reconstruction from PCDs application in the next section, intuitively, if
edges from high-density region come into the filtration first, then the resulting output graph will use such
edges whenever possible. See Figure 4 (A) to (D).
#### 4 Proof of Theorem 3.5
We assume that _K_ is connected. If it is not, then we will perform the following arguments to each connected
component of _K_ . Now recall that _Tδ_ := _{e ∈_ _E_ _| e_ is negative and pers( _e_ ) _≤_ _δ}_ consists of all negative edges
with persistence at most _δ_ (from (Step 2) of algorithm extDM-graph in the main paper). It is shown in [15]
that _Tδ_ consists of a set of trees. Set
_Eδ_ <sup>+</sup> <sup>:=</sup> <sup>_{e ∈_</sup> <sup>_E_</sup> <sup>_| e_</sup> <sup>is</sup> <sup>positive</sup> <sup>and</sup> <sup>pers(</sup> <sup>_e_</sup> <sup>)</sup> <sup>_> δ},_</sup> <sup>and</sup>
_Eδ_ <sup>_−_</sup> <sup>:=</sup> <sup>_{e ∈_</sup> <sup>_E_</sup> <sup>_| e_</sup> <sup>is</sup> <sup>negative</sup> <sup>and</sup> <sup>pers(</sup> <sup>_e_</sup> <sup>)</sup> <sup>_> δ}._</sup>
Set _G_ <sup>�</sup> _δ_ = _Tδ_
Set _G_ <sup>�</sup> _δ_ = _Tδ_ - _Gδ_, where _Gδ_ is the output of algorithm extDM-graph. Furthermore, by construction, _Gδ_
consists of edges in _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+</sup> <sup>together</sup> <sup>with</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>tree</sup> <sup>paths</sup> <sup>in</sup> <sup>_T_</sup> <sup>(recall</sup> <sup>Eqn</sup> <sup>(3)</sup> <sup>in</sup> <sup>Algorithm</sup> <sup>1,</sup> <sup>which</sup> <sup>is</sup>
the same as the construction for algorithm extDM-graph). It follows that
_δ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+</sup>
_G_ - _δ_ = _Tδ_ - _Gδ_ = _Tδ_
- _Eδ_ <sup>_−_</sup>
- _Eδ_ <sup>+</sup> <sup>_._</sup> (4)
We prove Theorem 3.5 in two steps, laid out in the following two lemmas.
Lemma 4.1. _Statements_ _(i)_ _and_ _(ii)_ _in_ _Theorem_ _3.5_ _holds_ _for_ _G_ <sup>�</sup> _δ._ _That_ _is:_ _(i’)_ _G_ <sup>�</sup> _δ_ _constructed_ _w.r.t._ _a_
_simplex-wise_ _filtration_ _Fρ_ _contains_ _a_ _lex-optimal_ _persistence_ _cycle_ _basis_ _for_ dgm1 _Fρ_ ( _δ_ ) _,_ _and_ _(ii’)_ _the_ _first_
_Betti_ _number_ _of_ _G_ <sup>�</sup> _δ_ _equals_ _|_ dgm1 _Fρ_ ( _δ_ ) _|._
Lemma 4.2. _G_ <sup>�</sup> _δ_ _deformation_ _contracts_ _to_ _Gδ._
Our theorem then follows from these two lemmas. Specifically, we will use the graph _G_ <sup>�</sup> _δ_ as a proxy:
Lemma 4.1 states that the desired results hold for _G_ <sup>�</sup> _δ_ . Lemma 4.2 then relates _G_ <sup>�</sup> _δ_ to _Gδ_ . In particular,
as both _G_ <sup>�</sup> _δ_ and _Gδ_ are graphs, this lemma implies that any simple cycle in _G_ <sup>�</sup> _δ_ must be present in _Gδ_ as
well. Theorem 3.5 then follows. What remains is to prove these two lemmas, which we present in the two
subsections that follow.
8
4.1 Proof of Lemma 4.1
Let dgm1 _Fρ_ ( _δ_ ) = _{_ p1 _, . . .,_ p _g}_ . By the definition of positive and negative edges, we know:
- (C1). _T_ <sup>�</sup> = _Tδ ∪_ _E_ <sup>_−_</sup> is a spanning tree of _K_ .
- (C2). By the definition of positive edges, _Eδ_ <sup>+</sup> <sup>contains</sup> <sup>exactly</sup> <sup>those</sup> <sup>edges</sup> <sup>whose</sup> <sup>addition</sup> <sup>create</sup> <sup>the</sup>
persistence points in dgm1 _Fρ_ ( _δ_ ). In other words, _g_ = _|Eδ_ <sup>+</sup> <sup>_|_</sup> <sup>and</sup> <sup>we</sup> <sup>can order</sup> <sup>edges</sup> <sup>in</sup> <sup>_E_</sup> _δ_ <sup>+</sup> <sup>=</sup> <sup>_{_</sup> <sup>e1</sup> <sup>_, . . .,_</sup> <sup>e</sup> <sup>_g}_</sup>
_δ_ <sup>+</sup> <sup>_|_</sup> <sup>and</sup> <sup>we</sup> <sup>can order</sup> <sup>edges</sup> <sup>in</sup> <sup>_E_</sup> _δ_ <sup>+</sup>
persistence points in dgm1 _Fρ_ ( _δ_ ). In other words, _g_ = _|Eδ_ <sup>+</sup> <sup>_|_</sup> <sup>and</sup> <sup>we</sup> <sup>can order</sup> <sup>edges</sup> <sup>in</sup> <sup>_E_</sup> _δ_ <sup>+</sup> <sup>=</sup> <sup>_{_</sup> <sup>e1</sup> <sup>_, . . .,_</sup> <sup>e</sup> <sup>_g}_</sup>
so that for any _ℓ_ _∈_ [1 _, g_ ], p _ℓ_ = [ind(e _ℓ_ ) _, dℓ_ ]: i.e, the birth-time of p _ℓ_ corresponds to the insertion of edge
e _ℓ_ in the simplicial complex _K_ ind(e _ℓ_ ).
Furthermore, the addition of each positive edge e _ℓ_ _∈_ _Eδ_ <sup>+</sup>
Furthermore, the addition of each positive edge e _ℓ_ _∈_ _Eδ_ <sup>+</sup> <sup>creates</sup> <sup>a</sup> <sup>cycle</sup> <sup>in</sup> <sup>the</sup> <sup>spanning</sup> <sup>tree</sup> <sup>_T_</sup> <sup>�</sup> <sup>(as</sup> <sup>e</sup> <sup>_ℓ_</sup> <sup>is</sup> <sup>not</sup> <sup>a</sup>
tree edge), As _G_ <sup>�</sup> _δ_ = _T_ <sup>�</sup> _∪_ _E_ <sup>+</sup>, we thus have _β_ 1( _G_ <sup>�</sup> _δ_ ) := _rank_ (H1( _G_ <sup>�</sup> _δ_ )) is the same as _g_ = _|_ dgm1 _Fρ_ ( _δ_ ) _|_ . This
proves part (ii’) in Lemma 4.1 for the graph _G_ <sup>�</sup> _δ_ .
We now prove part (i’) of Lemma 4.1. Consider any e _ℓ_ _∈_ _Eδ_ <sup>+,</sup> <sup>and</sup> <sup>let</sup> <sup>_γ∗_</sup> <sup>denote</sup> <sup>a</sup> <sup>lex-opt</sup> <sup>persistent</sup> <sup>cycle</sup>
of the corresponding persistence point p _ℓ_ = [b _,_ d] (where b = ind(e _ℓ_ )). By Definitions 3.1 and 3.3 in the main
paper, _γ_ <sup>_∗_</sup> necessarily contains e _ℓ_, and all other edges in _γ_ <sup>_∗_</sup> have an index smaller than ind(e _ℓ_ ). We will next
prove that _γ_ <sup>_∗_</sup> is in _G_ <sup>�</sup> _δ_, that is, treating a cycle (under Z2 coefficients) as a set, _γ_ <sup>_∗_</sup> _⊆_ _G_ <sup>�</sup> _δ_ .
<sup>_̸_</sup>
We now prove part (i’) of Lemma 4.1. Consider any e _ℓ_ _∈_ _Eδ_ <sup>+</sup>
In particular, take any edge _e_ <sup>_′_</sup> _∈_ _γ_ <sup>_∗_</sup> with _e_ <sup>_′̸_</sup> = e _ℓ_, we will show that _e_ <sup>_′_</sup> _∈_ _G_ <sup>�</sup> _δ_ .
- If _e_ <sup>_′_</sup> is negative, then this is trivially true as _e_ <sup>_′_</sup> _∈_ _T_ <sup>�</sup> _⊆_ _G_ <sup>�</sup> _δ_ .
- If _e_ <sup>_′_</sup> is positive but with persistence pers( _e_ <sup>_′_</sup> ) _> δ_, then it is also true as _e_ <sup>_′_</sup> _∈_ _Eδ_ <sup>+</sup> <sup>_⊆_</sup> <sup>_G_</sup> <sup>�</sup> <sup>_δ_</sup> <sup>.</sup>
- So what remains is the case when _e_ <sup>_′_</sup> = ( _u, v_ ) is positive but with pers( _e_ <sup>_′_</sup> ) _≤_ _δ_ . However, we will show
that this case cannot happen, which implies that _e_ <sup>_′_</sup> _∈_ _G_ <sup>�</sup> _δ_ .
Assume this case happens for edge _e_ <sup>_′_</sup> . Then let _Ce′_ (= _π_ ( _u, v_ ) + _e_ <sup>_′_</sup> ) _⊂_ _K_ ind( _e′_ ) be a persistent cycle
w.r.t. the persistence point [b <sup>_′_</sup> = ind( _e_ <sup>_′_</sup> ) _,_ d <sup>_′_</sup> ] generated by _e_ <sup>_′_</sup> . First, as the path (1-chain) _π_ ( _u, v_ ) is
contained in _K_ ind( _e′_ ), all edges in _π_ ( _u, v_ ) have an index less than that of _e_ <sup>_′_</sup> . This means that the cycle
_γ_ <sup>_′_</sup> = _γ_ <sup>_∗_</sup> _−_ _e_ <sup>_′_</sup> + _π_ ( _u, v_ ) is necessarily smaller than _γ_ <sup>_∗_</sup> in lexicographic order. We now claim that _γ_ <sup>_′_</sup> is also
a persistent cycle w.r.t. the persistence point p _ℓ_ = [b _,_ d] corresponding to the positive edge e _ℓ_ .
Indeed, as _γ_ <sup>_∗_</sup> is a persistent cycle w.r.t. p _ℓ_, we know that ind( _e_ <sup>_′_</sup> ) _<_ ind(e _ℓ_ ) = b. Recall that the
persistence point corresponds to the positive edge _e_ <sup>_′_</sup> is [b <sup>_′_</sup> = ind( _e_ <sup>_′_</sup> ) _,_ d <sup>_′_</sup> ]. As pers(e _ℓ_ ) = _ρ_ (d) _−_ _ρ_ (b) _> δ_
while pers( _e_ <sup>_′_</sup> ) = _ρ_ (d <sup>_′_</sup> ) _−_ _ρ_ (b <sup>_′_</sup> ) _≤_ _δ_, it then follows that d <sup>_′_</sup> _<_ d. (See Figure 2 (b) for illustrations of these
notations.) Hence we know that it is necessary that the cycle _π_ ( _u, v_ ) + _e_ <sup>_′_</sup> becomes boundary in _K_ d _−_ 1.
In other words, in _K_ d _−_ 1, the two cycles _γ_ <sup>_∗_</sup> and _γ_ <sup>_′_</sup> are homologous. It is then easy to verify that _γ_ <sup>_′_</sup> must
be a persistent cycle for p _ℓ_ as well.
Since _γ_ <sup>_′_</sup> is also a persistent cycle for p _ℓ_ and is lexicographically smaller than _γ_ <sup>_∗_</sup>, this contradicts our
assumption that _γ_ <sup>_∗_</sup> is a lex-opt persistent cycle for p _ℓ_ . Hence no positive edge _e_ <sup>_′_</sup> _∈_ _γ_ <sup>_∗_</sup> with pers( _e_ <sup>_′_</sup> ) _< δ_
can be in _γ_ <sup>_∗_</sup> .
By the above case analysis, any edge _e_ <sup>_′_</sup> _∈_ _γ_ <sup>_∗_</sup> must be in _G_ <sup>�</sup> _δ_ . It then follows that _γ_ <sup>_∗_</sup> _⊆_ _G_ <sup>�</sup> _δ_ . As this
argument holds for any edge in _Eδ_ <sup>+,</sup> <sup>we</sup> <sup>thus</sup> <sup>have</sup> <sup>proven</sup> <sup>(i’).</sup> <sup>This</sup> <sup>finishes</sup> <sup>the</sup> <sup>proof</sup> <sup>of</sup> <sup>Lemma</sup> <sup>4.1.</sup>
4.2 Proof of Lemma 4.2
First, by construction of _G_ <sup>�</sup> _δ_ (Eqn (4)), we have that _Gδ_ _⊆_ _G_ <sup>�</sup> _δ_, and all edges in _G_ <sup>�</sup> _δ \ Gδ_ must come from _Tδ_ .
Now recall _T_ <sup>�</sup> = _Tδ_ - _E−_, which is a spanning tree of _K_ . Given an arbitrary tree _T_ and two nodes _u, v_ _∈_ _T_,
let _πT_ ( _u, v_ ) denote the unique tree path from _u_ to _v_ in _T_ . We have the following simple claim.
Claim 4.3. _Given_ _any_ _rooted_ _tree_ _T_ _with_ _root_ _r_ ( _T_ ) _and_ _two_ _nodes_ _u, v_ _∈_ _T_ _,_ _we_ _have_ _that_ _πT_ ( _u, v_ ) _⊆_
_πT_ ( _u, r_ ( _T_ )) _∪_ _πT_ ( _v, r_ ( _T_ )) _._
_Proof._ If _u_ and _v_ have ancestor / descendent relation, say _u_ is ancestor of _v_, then it is clear that _πT_ ( _u, v_ ) _⊆_
_πT_ ( _v, r_ ( _T_ )), and the claim then follows. Otherwise, let _w_ be the common ancestor of _u_ and _v_ . It can again be
verified that in this case, _πT_ ( _u, w_ ) _⊆_ _πT_ ( _u, r_ ( _T_ )), _πT_ ( _v, w_ ) _⊆_ _πT_ ( _v, r_ ( _T_ )), while _πT_ ( _u, v_ ) = _πT_ ( _u, w_ ) _◦πT_ ( _w, v_ ).
The claim thus follows.
9
_Tδ_ is a spanning forest of vertex set _V_ . Given any vertex _v_ _∈_ _V_, suppose it is in the tree _T_ _∈Tδ_ . We
denote _pathTδ_ ( _v_ ) := _πT_ ( _v, r_ ( _T_ )) to be the path from _v_ to the root _r_ ( _T_ ) of _T_ . Recall that _Gδ_ is constructed
by, for any edge _e_ = ( _u, v_ ) _∈_ _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+,</sup> <sup>adding</sup> <sup>_e ∪_</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_∪_</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>into</sup> <sup>_Gδ_</sup> <sup>.</sup>
Lemma 4.4. _For_ _each_ _edge_ e = ( _u, v_ ) _∈_ _Eδ_ <sup>+</sup> <sup>_,_</sup> <sup>_set_</sup> <sup>_γ_</sup> <sup>=</sup> <sup>_e ∪_</sup> <sup>_π_</sup> <sup>�</sup> _T_ <sup>(</sup> <sup>_u, v_</sup> <sup>)</sup> <sup>_._</sup> <sup>_Then_</sup> <sup>_the_</sup> <sup>_cycle_</sup> <sup>_γ_</sup> <sup>_must_</sup> <sup>_be_</sup> <sup>_contained_</sup> <sup>_in_</sup> <sup>_Gδ._</sup>
_δ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+</sup>
_δ_ <sup>+,</sup> <sup>adding</sup> <sup>_e ∪_</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_∪_</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_v_</sup> <sup>)</sup> <sup>into</sup> <sup>_Gδ_</sup> <sup>.</sup>
Lemma 4.4. _For_ _each_ _edge_ e = ( _u, v_ ) _∈_ _Eδ_ <sup>+</sup>
_Proof._ Consider the path _π_ = _π_ - _T_ <sup>(</sup> <sup>_u, v_</sup> <sup>):</sup> <sup>it</sup> <sup>will</sup> <sup>be</sup> <sup>broken</sup> <sup>into</sup> <sup>_k_</sup> <sup>_≥_</sup> <sup>0</sup> <sup>maximally</sup> <sup>connected</sup> <sup>pieces</sup> <sup>from</sup> <sup>_Tδ_</sup> <sup>,</sup>
connected by edges in _E_ <sup>_−_</sup> _∪_ _E_ <sup>+</sup> . If _k_ = 0, we are done, because this means that _u, v_ are contained in the
same tree _T_ in _T_, and it then follows from Claim 4.3 that
_π_ = _πT_ ( _u, v_ ) _⊆_ _pathTδ_ ( _u_ ) _∪_ _pathTδ_ ( _v_ ) _⊆_ _Gδ._
_T_
_u_ 2
_v_ 2
_w_ 1
_C_ 2
_w_ 4
_r_ ( _T_ )
_C_ 1 _u_ _C_ 2
_e_ 1 _w_
_e_ 2
_w_ 2
_u_ 1
_v_ 1
_vk_
_uk_
_u_ (= _u_ 0) _v_ (= _vk_ +1)
_C_ 4
_C_ 1
_C_ 3
_w_ 3
(a) (b) (c)
Figure 3: (a) The path _π_ = _π_ ( _u, v_ ) is broken into _k_ + 1 pieces, each of which (blue subcurves) is a maximal
connected component in _π ∩Tδ_, while the connecting edges (red edges ( _vi, ui_ )’s) must come from _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+.</sup>
_δ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+.</sup>
connected component in _π ∩Tδ_, while the connecting edges (red edges ( _vi, ui_ )’s) must come from _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+.</sup>
(b) The solid red path is the tree path _π_ = _πT_ ( _u, w_ ) connecting _u_ and _w_ in the tree _T_ from the spanning
forest _Tδ_ . The root of _T_ is _r_ ( _T_ ). (c) The solid red curve is _Gδ_, while dashed trees are components in _G_ <sup>�</sup> _δ \ Gδ_ .
The closure of each _Ci_ connects to _Gδ_ at one point _wi_, and thus its closure can deformation retract to _wi_ .
So assume that _k_ _>_ 0, and the edges connecting these pieces are _e_ 1 = ( _v_ 1 _, u_ 1) _, . . ., ek_ = ( _vk, uk_ ) from _u_
to _v_ along _π_ ; see Figure 3 (a). Obviously, for each _i_ _∈_ [1 _, k_ ], _ei_ _∈T/_ _δ_ and _ei_ _∈_ _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+.</sup> <sup>Set</sup> <sup>_u_</sup> <sup>0</sup> <sup>=</sup> <sup>_u_</sup> <sup>and</sup>
_δ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+</sup>
to _v_ along _π_ ; see Figure 3 (a). Obviously, for each _i_ _∈_ [1 _, k_ ], _ei_ _∈T/_ _δ_ and _ei_ _∈_ _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+.</sup> <sup>Set</sup> <sup>_u_</sup> <sup>0</sup> <sup>=</sup> <sup>_u_</sup> <sup>and</sup>
_vk_ +1 = _v_ . It then follows that for any _i_ _∈_ [0 _, k_ ], _ui_ is connected to _vi_ +1 within some tree, say _T_ _∈Tδ_ . By
Claim 4.3 that the portion of _π_ from _ui_ to _vi_ +1 must be contained in _path_ ( _ui_ ) _∪_ _path_ ( _vi_ +1). Applying this
for all _i ∈_ [0 _, k_ ], it follows that
- <sup>�</sup> - _e_ 1 _∪_ _e_ 2 _· · · ∪_ _ek_
_π_ _⊆_
- <sup>�</sup>
_i∈_ [0 _,k_ ]
( _path_ ( _ui_ ) _∪_ _path_ ( _vi_ +1)� <sup>�</sup> - _e_ 1 _∪_ _e_ 2 _· · · ∪_ _ek_
- <sup>�</sup> _· · ·_ �� _ek ∪_ _path_ ( _vk_ ) _∪_ _path_ ( _uk_ )
- _._
=
- _path_ ( _u_ ) _∪_ _path_ ( _v_ )
- <sup>�</sup> - _e_ 1 _∪_ _path_ ( _v_ 1) _∪_ _path_ ( _u_ 1)
As all edges _e_ 1 _, . . . ek_ and _e_ are all in _E_ <sup>_−_</sup> _∪_ _E_ <sup>+</sup>, it then follows that _π_ _⊆_ _Gδ_ and thus _γ_ = _e ∪_ _π_ _⊆_ _Gδ_ .
Lemma 4.5. _β_ 0( _Gδ_ ) = _β_ 0( _G_ <sup>�</sup> _δ_ ) _,_ _and_ _β_ 1( _Gδ_ ) = _β_ 1( _G_ <sup>�</sup> _δ_ ) _._
_Proof._ That _β_ 1( _Gδ_ ) = _β_ 1( _G_ <sup>�</sup> _δ_ ) follows immediately from Lemma 4.4. We now prove that _Gδ_ and _G_ <sup>�</sup> _δ_ also has
the same number of connected components. Note that we have already assumed that _K_ is connected, and
thus _G_ <sup>�</sup> _δ_ is connected as it contains a spanning tree _T_ <sup>�</sup> of _K_ . So what remains is to show that _Gδ_ is connected.
Assume _Gδ_ is not connected, and let _C_ 1 _, C_ 2 be two components of _Gδ_ . Recall that _Gδ_ is constructed
by the union of paths <sup>�</sup> _e_ =( _u,v_ ) _∈Eδ_ <sup>_−∪E_</sup> _δ_ <sup>+</sup> - _e ∪_ _pathTδ_ ( _u_ ) _∪_ _pathTδ_ ( _v_ )�. Let _e_ 1 _∈_ _C_ 1 be an arbitrary edge from
_e_ =( _u,v_ ) _∈Eδ_ <sup>_−_</sup>
_δ_
- _e ∪_ _pathTδ_ ( _u_ ) _∪_ _pathTδ_ ( _v_ )
�. Let _e_ 1 _∈_ _C_ 1 be an arbitrary edge from
_C_ 1 _∩_ ( _Eδ_ <sup>_−_</sup>
_δ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+</sup>
_δ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+</sup>
_δ_ <sup>_−∪E_</sup> _δ_ <sup>+</sup>
_C_ 1 _∩_ ( _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+):</sup> <sup>Note</sup> <sup>that</sup> <sup>such</sup> <sup>an</sup> <sup>edge</sup> <sup>must</sup> <sup>exist,</sup> <sup>as</sup> <sup>otherwise</sup> <sup>_C_</sup> <sup>1</sup> <sup>will</sup> <sup>not</sup> <sup>be</sup> <sup>in</sup> <sup>_Gδ_</sup> <sup>.</sup> <sup>Similarly,</sup> <sup>let</sup>
_e_ 2 _∈_ _C_ 2 _∩_ ( _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+).</sup> <sup>Let</sup> <sup>_u_</sup> <sup>be</sup> <sup>an</sup> <sup>endpoint</sup> <sup>of</sup> <sup>_e_</sup> <sup>1</sup> <sup>while</sup> <sup>_w_</sup> <sup>be</sup> <sup>an</sup> <sup>edge</sup> <sup>point</sup> <sup>of</sup> <sup>_e_</sup> <sup>2.</sup> <sup>We</sup> <sup>know</sup> <sup>that</sup> <sup>_u_</sup> <sup>and</sup> <sup>_w_</sup> <sup>are</sup>
_e_ 2 _∈_ _C_ 2 _∩_ ( _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+).</sup> <sup>Let</sup> <sup>_u_</sup> <sup>be</sup> <sup>an</sup> <sup>endpoint</sup> <sup>of</sup> <sup>_e_</sup> <sup>1</sup> <sup>while</sup> <sup>_w_</sup> <sup>be</sup> <sup>an</sup> <sup>edge</sup> <sup>point</sup> <sup>of</sup> <sup>_e_</sup> <sup>2.</sup> <sup>We</sup> <sup>know</sup> <sup>that</sup> <sup>_u_</sup> <sup>and</sup> <sup>_w_</sup> <sup>are</sup>
connected in _Tδ_ by path _π_ = _πTδ_ ( _u, w_ ). We now claim that this path must be in _Gδ_ ; which contradicts with
our assumption that _C_ 1 and _C_ 2 are two connected components of _Gδ_ . Hence our assumption is wrong, and
_Gδ_ must be connected as well, which finishes the proof of the claim.
What remains is to show that the path _π_ = _πTδ_ ( _u, w_ ) as described above must be in _Gδ_ . Let _T_ _∈Tδ_ be
the tree in _Tδ_ containing path _π_, and let _rT_ be its root. We now perform a case analysis based on the location
of _rT_ w.r.t. _u_ and _w_ . (Case 1): _u_ is an ancestor of _w_ in _T_ ; (case 2): _w_ is an ancestor of _u_ in _T_ ; and (case 3):
10
otherwise. See Figure 3 (b) for an illustration of (case 3). We first prove that _π_ _⊆_ _Gδ_ for (case 3). In this
case, we have that _pathTδ_ ( _u_ ) _∪_ _pathTδ_ ( _w_ ) is a superset of _π_, that is, _π_ _⊆_ _pathTδ_ ( _u_ ) _∪_ _pathTδ_ ( _w_ ). Furthermore,
since both _e_ 1 _, e_ 2 _∈_ _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+,</sup> <sup>by</sup> <sup>construction</sup> <sup>of</sup> <sup>_Gδ_</sup> <sup>,</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_⊆_</sup> <sup>_Gδ_</sup> <sup>and</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_w_</sup> <sup>)</sup> <sup>_⊆_</sup> <sup>_Gδ_</sup> <sup>.</sup> <sup>It</sup> <sup>then</sup> <sup>follows</sup>
_δ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+</sup>
since both _e_ 1 _, e_ 2 _∈_ _Eδ_ <sup>_−_</sup> <sup>_∪_</sup> <sup>_E_</sup> _δ_ <sup>+,</sup> <sup>by</sup> <sup>construction</sup> <sup>of</sup> <sup>_Gδ_</sup> <sup>,</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_u_</sup> <sup>)</sup> <sup>_⊆_</sup> <sup>_Gδ_</sup> <sup>and</sup> <sup>_pathT_</sup> _δ_ <sup>(</sup> <sup>_w_</sup> <sup>)</sup> <sup>_⊆_</sup> <sup>_Gδ_</sup> <sup>.</sup> <sup>It</sup> <sup>then</sup> <sup>follows</sup>
that _π_ _⊆_ _Gδ_ . Using a similar argument, one can show that _π_ _⊆_ _Gδ_ for (case 1) and (case 2) as well.
Putting everything together, we have that _Gδ_ is connected and thus _β_ 0( _G_ ) = _β_ 0( _G_ <sup>�</sup> _δ_ ). This finishes the
proof of the lemma.
Now let _C_ 1 _, . . ., Cs_ be the components of _G_ <sup>�</sup> _δ \ Gδ_, and for each _i ∈_ [1 _, s_ ], let _C_ _i_ be the closure of _Ci_ . We
claim that _C_ _i \ Ci_ can contain only one vertex, say _wi_ . See Figure <u>3</u> (c). Indeed, as _G_ <sup>�</sup> _δ \ Gδ_ _⊆Tδ_, each _C_ _i_ is
simply connected (i.e, it is a subtree of some tree in _Tδ_ ). Suppose _C_ _i \ Ci_ contains at least two vertices, say
_w_ and _w_ <sup>_′_</sup> . As _C_ _i_ is connected, there is a path _πCi_ ( _w, w_ <sup>_′_</sup> ) connecting _w_ to _w_ <sup>_′_</sup> in _C_ _i_ . On the other hand, as
_Gδ_ is connected (Lemma 4.5), there is another path _πGδ_ ( _w, w_ <sup>_′_</sup> ) connecting _w_ and _w_ <sup>_′_</sup> . This gives rise to a
cycle _γ_ = _πCi_ ( _w, w_ <sup>_′_</sup> ) _∪_ _πGδ_ ( _w, w_ <sup>_′_</sup> ) in _G_ <sup>�</sup> _δ_, and this cycle is not in _Gδ_ . This however contradicts to what we
just proved that _β_ 1( _Gδ_ ) = _β_ 1( _G_ <sup>�</sup> _δ_ ). Hence this cannot happen.
Hence _C_ _i_ can only connect to _Gδ_ via one point _wi_ <u>as</u> illustrated in Figure 3 (c). It then follows that _G_ <sup>�</sup> _δ_
deformation retracts to _Gδ_ by contracting each subtree _C_ _i_ to the point _wi_ . This finishes the proof of Lemma
4.2.
#### 5 PCD Algorithm via Sparse Weighted-Rips
Given a PCD _P_ _⊂_ R <sup>_d_</sup>, we now wish to compute a graph skeleton of _P_ . Our algorithm can be easily extended
to the case where these points _P_ are not embedded but with only pairwise distances (or similarity) given.
A baseline approach. A natural approach is to (i) build a simplicial complex _K_ from _P_ to "approximate"
the space behind _P_, (ii) estimate a density function _ρ_ at _P_ = _V_ ( _K_ ), and (iii) then perform algorithm DMgraph. A reasonable choice for _K_ is the so-called Rips complex rips <sup>_r_</sup> ( _P_ ) := _{_ ( _pi_ 0 _, . . ., pik_ ) _| ∥pij_ _−_ _pij′_ _∥≤_ _r}_ :
Intuitively, an edge ( _p, q_ ) _∈_ rips <sup>_r_</sup> ( _P_ ) if the distance between points _p, q_ _∈_ _P_ is at most _r_ . A triangle is in
rips <sup>_r_</sup> ( _P_ ) if all three edges are in, and similarly for higher-dimensional simplices. However, we only need
2-skeleton of rips <sup>_r_</sup> ( _P_ ), which we still denote by rips <sup>_r_</sup> ( _P_ ). The estimated density of a point is determined by
summing the distances under a Gaussian kernel to each of its KNN for some k. We refer to this algorithm as
baseline where we use the rips <sup>_r_</sup> ( _P_ ) as choice of complex _K_, that is, we perform DM-graph(rips <sup>_r_</sup> ( _P_ ) _, ρ, δ_ ).
Challenges with baseline . This baseline approach faces several challenges. (C-1) It is usually hard to
choose the right radius _r_ and the topology of rips <sup>_r_</sup> ( _P_ ) crucially decides the final output graph: see Figure
4, where if _r_ is too small, the shape is not yet captured by rips <sup>_r_</sup> ( _P_ ); for larger _r_, there can be spurious
topological features (extra loops) in _K_ which cannot be simplified by persistence (as these loops are generated
by edges with infinity persistence). There is also the issue that even if one has found a radius _r_ value such
that rips <sup>_r_</sup> ( _P_ ) can provide the correct topology, the geometry of the graph skeleton computed by this baseline
algorithm may lose resolution (e.g, Figure 4 (H)).
(C-2) Points may be sampled at non-uniform resolution, hence there may not exist a single good _r_ that
can capture all features; see Figure 5. (C-3) Even for a moderate radius _r_, the size of Rips complex becomes
large, making persistence computation very costly. (C-4) The Rips complex can be a poor approximation of
the hidden space when there is background noise; see Figure 5 (F) and (H), where even though the hidden
space consists of 5 independent cycles (see Section 6), with much background noise, even a small radius _r_
makes the Rips complex connect these noisy points and lose the hidden structure. Removing low-density
points can help; however in general that can be challenging when the density distribution is non-uniform.
A DTM-Rips based approach. The Rips complex is defined based on the Euclidean distance between
input points, and does not handle noise or non-uniform point samples well. The _distance-to-measure_ _(DTM)_
distance is introduced in [9] to provide a more robust way to produce distance field for noisy points. We use
the work of [5] to induce a weighted Rips complex from DTM distances, which we now describe briefly. In
particular, given a set of points ( _P,_ d _P_ ) equipped with metric _dP_ (for points _P_ _⊂_ R <sup>_d_</sup>, d _P_ is the Euclidean
distance in R <sup>_d_</sup> ). For a fixed integer parameter _k_ _>_ 0, let kNN( _p_ ) denote the set of _k_ -nearest neighbor of _p_ in
11
_q∈_ k _NN_ ( _p_ ) <sup>d</sup> _P_ <sup>2</sup>
_P_ under metric d _P_ . For each _p ∈_ _P_, we set _(DTM-induced)_ _weight_ _wp_ as _wp_ =
~~�~~ <u>1</u>
_k_
<u>�</u>
_P_ <sup>2</sup> <sup>(</sup> <sup>_p, q_</sup> <sup>),</sup> <sup>and</sup>
the _weighted_ _radius_ _of_ _p_ _at_ _scale_ _α_ as _rp_ ( _α_ ) =
_ρw_ ( _σ_ ) to be
- _α_ <sup>2</sup> _−_ _wp_ <sup>2</sup> _._ Now given a simplex _σ_ = _{pi_ 0 _, . . ., pis_ _}_, we define
_ρw_ ( _σ_ ) = min _{α_ <sup>_′_</sup> _|_ _wpij_ _≤_ _α_ <sup>_′_</sup> _,_ and d _P_ ( _pij_ _, pij′_ ) _≤_ _rpij_ ( _α_ <sup>_′_</sup> ) + _rpij′_ ( _α_ <sup>_′_</sup> ) _, ∀j_ = _j_ <sup>_′_</sup> _∈_ [0 _, s_ ] _}._
This gives an ordering of all possible simplices formed by points in _P_ (again, edges and triangles are needed),
and the resulting filtration is called _DTM-Rips_ _filtration_ _Fρw_ . Equivalently, consider the DTM-weighted
Rips complex wRip <sup>_α_</sup> ( _P_ ) at scale _r_ defined as: wRip <sup>_r_</sup> ( _P_ ) = _{σ_ = _{pi_ 0 _, . . ., pis_ _} | ρw_ ( _σ_ ) _≤_ _r}_ . The sequence of
wRip <sup>_r_</sup> ( _P_ ) with increasing scales _r_ = [0 _, ∞_ ) gives rise to the filtration _Fρw_ . The weight _ωp_ is a certain average
distance to the _k_ NN of _p_ and thus intuitively an inverse density estimator (high density points have low
weight). Given two points _p, q_ _∈_ _P_, the edge _σ_ = ( _p, q_ ) has smaller _ρw_ ( _σ_ ) if _p_ and _q_ has lower weight (thus
higher density ). Simplices spanned by higher density points will enter earlier into the filtration _Fρw_ .
Incorporating data sparsification. However, the size of weighted Rips can still be large. To this end,
we deploy the sparsified version of DTM-Rips developed in [5]. The resulting filtration is denoted by _sparse_
_DTM-Rips_ _F_ <sup>�</sup> _ρw_ ( _ε_ ) which uses a sparsification parameter _ε >_ 0. See [5] for details of its construction. Our
final graph skeletonization algorithm for PCDs, denoted by DM-PCD( _P, k, ε, δ_ ), consists of only two steps:
(Step 1). Compute the sparse DTM-Rips filtration _F_ <sup>�</sup> _ρw_ ( _ε_ ) using parameters _k_ (to compute DTM-weights
of points) and _ε_ (for sparsification).
(Step 2). Apply extDM-graph( _K,_ _F_ <sup>�</sup> _ρw_ ( _ε_ ) _, δ_ ) to compute the graph skeleton of _P_, where _K_ is given implicitly
as all simplices in _F_ <sup>�</sup> _ρw_ ( _ε_ ).
Intuitively, using the DTM-weight alleviates the problem of noisy points (challenge (C-4)), using sparsification addresses the issue of size (challenge (C-3)), while using the entire sparse DTM-Rips filtration allows
us to use all radii/scales (instead of a Rips complex at a fixed radius _r_ as in baseline), thereby addressing
challenges (C-1) and (C-2). Also, while at a larger radius, the filtration will include edges and triangles
spanned by far-away points. Theorem 3.5 guarantees that we will output those important loop features using
edges that come in as early as possible, i.e., those spanned by higher density points (with smaller _ρw_ values)
whenever possible. This allows DM-PCD to capture hidden graphs across different scales. See Figure 5.
#### 6 Experimental Results
We compare our DM-PCD algorithm with the baseline algorithm introduced in Section 5, and with SOA
graph skeletonization algorithms based on Reeb graph [23] and Mapper [35] (referred to as ReebRecon and
Mapper below). (Mapper can produce higher dimensional structures beyond graph skeleton, although often 1D
structures are used in practice.) We test on two synthetic point sets and three real datasets. Unless otherwise
specified, we use _k_ = 15 and _ε_ = _._ 99 in our DM-PCD( _P, k, ε, δ_ ); while the persistence simplification threshold
_δ_ depends on the point set at hand. For baseline, ReebRecon, and Mapper we report the results of the best
parameters we find for them. In particular, a key input for the Mapper algorithm is an appropriate filter
function. We tested several standard choices, including distance to base point, eccentricity, density, graph
Laplacian eigenfunction and so on, and report the best results found. _For_ _all_ _experiments,_ _all_ _methodologies_
_are_ _run_ _on_ _the_ _original_ _point_ _cloud_ _data,_ _and_ _the_ _figures_ _showing_ _results_ _of_ _higher_ _dimensional_ _data_ _display_
_projections_ _of_ _the_ _results_ _into_ _a_ _lower_ _dimensional_ _space._ Significantly more results and details are in the
Appendix.
Overview. Methods are run on five total datasets - two lower-dimensional (2-D) synthetic datasets, image
patches dataset [8] (8-D), time-delay embedding of traffic sensor datasets [7] (6-D), and Coil-20 [30] (16384-D).
Our experiments show that DM-PCD is able to extract the true underlying structure of all of these datasets
while the other methodologies struggle with noise (image patches and traffic datasets), capturing features
at different scales (synthetic and Coil-20 datasets), and having geometrically faithful outputs (synthetic
datasets). Additionally, the size of the filtration used by DM-PCD is consistently smaller than that used by
baseline.
12
Synthetic datasets. We create two synthetic PCDs to illustrate the behavior of our DM-PCD algorithm.
Circle dataset contains a noisy and non-uniform sample around a hidden circle with 2050 points. DM-PCD _is_
_able_ _to_ _recover_ _a_ _geometrically_ _faithful_ _hidden_ _circle._ _The_ _other_ _methodologies,_ _which_ _require_ _more_ _parameters,_
_also_ _recover_ _a_ _hidden_ _circle,_ _but_ _with_ _a_ _less_ _geometrically_ _faithful_ _structure._ _Additionally,_ baseline _requires_ _far_
_greater_ _running_ _time_ _for_ _comparable_ _results._ See Figure 4: the output of our method (in (C)) recovers the
hidden circle. In comparison, outputs of baseline algorithm over the Rips complex rips <sup>_r_</sup> ( _P_ ) at different radius
values are shown in (E) - (H). The total number of simplices involved in our sparsified DTM-Rips filtration is
368 _,_ 276. The successful baseline result (shown in Figure 4 (G)) however requires 7 _,_ 708 _,_ 243 simplices, which
is about 20 fold increase in size. This results in a drastic run-time difference (2.6 seconds vs. 44.8 seconds)
between DM-PCD and baseline. In general, DM-PCD is more efficient than baseline because persistence is
computed on a much smaller filtration (see Appendix for fully detailed timing results on all datasets). Also,
in general, it is not clear which _r_ to choose for baseline, and if _r_ is too large (e.g., Figure 4 (H)), then the
output graph is geometrically not faithful any more - this is because long edges are now present in the Rips
complex and can appear early in the lower-star filtration in the DM-graph algorithm. In contrast, our output
(in (C)) takes advantage of the lex-optimality of the algorithm (Theorem 3.5) and thus always uses "good"
edges (small edges from high density regions that enter the filtration early) first. The ReebRecon approach
also uses Rips complex at a fixed scale _r_ and thus has similar issues with baseline. The Mapper approach
(Figure 4 (J)) correctly captures topology of the space, but misses some geometric details.
The top row of Figure 5 shows the reconstruction from a set of 300 points non-uniformly sampled from
two circles (of different sizes) with background noise. DM-PCD _successfully_ _captures_ _both_ _circles,_ _while_ _other_
_methods_ _either_ _fail_ _to_ _capture_ _both_ _circles,_ _or_ _have_ _a_ _topologically_ _correct_ _output_ _that_ _is_ _less_ _geometrically_
_faithful_ _than_ _our_ _method’s_ _output._ Our algorithm scans through all scales in the filtration and captures both
loop features. In contrast, both baseline and ReebRecon can capture only one loop. Using a small radius _r_,
they can capture the small loop but not the big one. To capture the large loop, they need to use a large
radius _r_ (as in Figure 5 (C) and (D)), at which point the small loop is destroyed in the Rips complex. Mapper
is able to capture both loops, but again some geometric details are lost (Figure 5 (E)). See more results in
the Appendix.
(A) Data (B) H1 Diagram (C) Our Method (D) Bad Cycle
(E) Baseline
(F) Baseline (G) Baseline (H) Baseline
(I) Reeb Graph (J) Mapper
Figure 4: (A) Noisy sample of a circle. (B) 1-D persistence diagram w.r.t. our later sparse DTM-Rips filtration.
Persistence points are green. Only one point (big point) p has persistence larger than some threshold _δ_ (above the
red dotted line). (C) Output of our DM-PCD method with persistence threshold _δ_ = _._ 25, which is a lex-optimal
persistent cycle w.r.t. the only high persistence point p in (B). (D) shows a "bad" persistent cycle w.r.t. the same
high persistence point p. In contrast, our output in (C) uses good (high density) edges whenever possible. (E) - (H)
are outputs from the baseline algorithm using different radius _r_ . (E) _r_ = 0 _._ 1: The underlying shape (circle) is not yet
captured. (F) _r_ = 0 _._ 2: There are spurious loops that cannot be simplified via persistence. (G) _r_ = 0 _._ 25: The circle is
recovered; however, the size of rips <sup>_r_</sup> ( _P_ ) is now 20 times that of our sparse DTM-Rips filtration. (H) _r_ = 1 _._ 05: The
output loses geometric details. (I) is output from ReebRecon using rips <sup>_r_</sup> ( _P_ ) with radius _r_ = _._ 25 and has much noise.
(J) is output from Mapper using graph Laplacian filter ( _k_ = 15).
Image patches dataset. The image patches dataset from [8] contains 50 _K_ points in S <sup>7</sup> _⊂_ R <sup>8</sup>, each of
which corresponds to a 3x3 image patch [28]. We subsample 10 _K_ points randomly so computationally we
13
can experiment with Rips complexes at different radii for the baseline. DM-PCD _is_ _the_ _only_ _method_ _that_
_can_ _extract_ _the_ _true_ _underlying_ _structure_ _from_ _the_ _dataset._ _All_ _other_ _methods_ _fail_ _to_ _extract_ _any_ _meaningful_
_structure._ The projection of points in 3D (Figure 5 (F)) is very noisy. However, the analysis of [8] shows
that the underlying space has a "three-circle model", with two circles intersecting the third circle twice but
not intersecting each other, thus the first Betti number of the underlying space is 5. Our DM-PCD (shown
in Figure 5 (G)) successfully recovered the same "three-circle model" (with correct _β_ 1 = 5) directly from
raw data without preprocessing, and the locations of these (outer, horizontal, and vertical) circles match
those shown in [8]. Both baseline and Mapper (in Figure 5 (H) and (I)) fail to capture it. (More details in the
Appendix.) Results by ReebRecon are omitted for this data set, as the algorithm does not handle background
noise well and results are poor.
(E) Mapper
(I) Mapper
(A) 2-Circle
(B) Our Method
(C) Baseline (D) Reeb Graph
(F) Image Patch (G) Our Method
(H) Baseline
Figure 5: Top row: 2-circle data. Output of our DM-PCD method with persistence threshold _δ_ = 1 _._ 2 in (B); of
baseline in (C), of ReebRecon in (D), and of Mapper in (E). Using a smaller radius _r_ for baseline and ReebRecon will
lose the large circle. Mapper output misses geometric details. Bottom row: image patch dataset with projection in
R <sup>3</sup> shown in (F). Our output with persistence threshold _δ_ = _._ 146 in (G) captures the 3-circle model (with _β_ 1 = 5)
perfectly. For baseline in (H), further simplification will remove the main circle from the "3-circle model" while keeping
all the noisy ones. Mapper (I) (base point filter) is unable to capture any of the loops.
Traffic flow dataset. We extract two time-series from [7], which are the traffic flows at detector #409529
from the time-range 10/1/2017 to 10/14/2017 and from the time-range 11/19/2017 to 12/2/2017 (including
Thanksgiving). Each time-series is mapped to a PCD in R <sup>6</sup> via time-delay embedding as proposed by [32],
who also propose that loops in the resulting PCD can be used to detect quasi-periodic behavior in the original
time-series data. We note that a normal time range has one major loop, indicating one major periodicity;
while the Thanksgiving period has two: a normal one and one that indicates the traffic pattern over the
holiday weekend. DM-PCD _recovers_ _these_ _loops_ _much_ _better_ _than_ baseline _and_ Mapper _._ Results by ReebRecon
are again omitted due to low quality.
Coil-20 dataset. In our final experiment, we use the Coil-20 dataset provided by [30]. More specifically,
we take a subset of 17 objects - removing objects 5, 6, and 19. Objects 5 and 9 are both medicine boxes,
and objects 3, 6, and 19 are toy cars, and we wanted to evaluate our method’s performance on a dataset
containing unique objects. We refer to this subset as Coil-17. Following the process used by [29] to convert
images to point clouds, we convert each 128 x 128 gray scale image into a 16384 dimensional vector. Hence
the input is a set of 1224 points in R <sup>16384</sup> . Outputs of other methods can be found in the Appendix.
We visualize the data in two dimensions using UMAP dimensionality reduction with L1 metric. Presumably,
each class forms a high-dimensional loopy shape. We run DM-PCD using L1 metric with _k_ = 5. DM-PCD
_is_ _able_ _to_ _capture_ _most_ _of_ _the_ _individiual_ _coils_ _UMAP_ _does,_ _while_ _providing_ _a_ _more_ _correct_ _representation_
_of_ _some_ _classes_ _than_ _UMAP._ Shown in Figure 7 is the UMAP reduction with objects uniquely colored (A),
the output of our DM-PCD algorithm with a persistence threshold of 0 (B), the output of our DM-PCD
14
(A) Traffic Flow (B) Embedding (C) Our Method (D) Baseline (E) Mapper
Figure 6: Top row: traffic flow for range (10/1/2017 - 10/14/2017) and bottom row is for range (11/19/2017 12/2/2017). (A) input time series, and (B) 2d projections of the time delay embeddings of the time-series. (C) Outputs
of our DM-PCD algorithm with persistence thresholds of _δ_ = 50 (top row) and _δ_ = 12 _._ 5 (bottom row). (D) Outputs of
the baseline approach. For the Thanksgiving period, any further simplification will destroy the outer-loop but not the
cross connections. (E) Outputs of Mapper with graph Laplacian filter ( _k_ = 15).
algorithm with a persistence threshold of 56 (C), and the output in (C) after removing the critical edges with
L1 length above a threshold of 1700 in the 16384 dimensional original space (D). The raw output contains
the loops that we would expect to see based on our understanding of the data and the shapes formed in the
UMAP projection. The raw output also contains many other edges, revealing more relationships both within
individual classes and across multiple classes in the feature space. We remove the longer edges in order to
better highlight the features of the output that capture individual objects.
(B) Our Method
(C) Our Method
(D) Our Method
(A) UMAP (δ = 0) (δ = 56) (Post process)
(δ = 0)
(δ = 56)
Figure 7: Coil: (A) The UMAP projection (using L1 metric) of Coil-17. (B) Output of our DM-PCD algorithm with
persistence threshold _δ_ = 0. (C) Output of our DM-PCD algorithm with persistence threshold _δ_ = 56. (D) The output
shown in (C) with critical edges of L1 length greater than 1700 removed from the output.
Taking a closer look at Figure 7 (D), there are eight objects that the DM-PCD captures in the same exact
manner that the UMAP projection does. Close up pictures of these eight objects are shown in Figure 8.
15
(A) Obj1 (B) Obj17 (C) Obj4 (D) Obj10
(E) Obj7 (F) Obj13 (G) Obj15 (H) Obj8
Figure 8: Coil: Zoom ins of Figure 7 (D) on the eight objects for which our DM-PCD post processed output matches
the UMAP projection.
There are also four objects that both the DM-PCD output and the UMAP projection capture as loops,
but the loops differ between the two methods. Close up pictures of these four objects are shown in Figure
9. Object 11 (Figure 9 (A)) is a single loop in the UMAP projection, but is actually two full loops in the
DM-PCD output. A closer look (Figure 9 (B)) at images 16, 17, 54, and 55 shows two separate loops in the
output. The L1 distances between these images in the 16384 dimensional original space (1069.2157046029981,
1038.6980409049952, 693.1607849029981, and 566.901973108997) for pairs (16,54), (17,55), (16,17), and
(54,55) respectively) do not match the distances between the pairs in the UMAP projections. This indicates
that the UMAP projection does not preserve the underlying structure of this object, and that the DM-PCD
output containing two loops is correct.
A similar result is obtained for Object 14 (Figure 9 (C)), where UMAP projects a single loop and the
DM-PCD output contains multiple loops. Objects 11 and 14 are symmetrical, adding further justification
that multiple loops is a better skeletonization.
Object 2 (Figure 9 (D)) makes a complete loop in the DM-PCD output, but the loop looks incomplete
in the UMAP projection. We ran UMAP projections on smaller subsets of Coil-20, some of which project
Object 2 as a clear loop (Figure 9 (E)), whereas the DM-PCD output consistently captures Object 2 as a loop.
Object 20 (Figure 9 (F)) is captured as the same loop in both the UMAP projection and the DM-PCD
output, but the DM-PCD output has an additional edge dividing the loop. The edge connects images 44 and
70, which have a L1 distance of 1329.8000237339966 in the original space. While the other edges adjacent to
these nodes are much shorter, other edges that would similarly divide the loop into two are much longer.
For example, the L1 distance between images 19 and 58 is 1822.1608110429997. The dividing edge in the
DM-PCD output captures this difference, whereas the UMAP projection has no indication of such a difference.
16
(A) Obj11 (B) Obj11 (C) Obj14
(D) Obj2 (E) Obj2
(F) Obj20
Figure 9: Coil: Zoom ins of Figure 7 (D) on the four objects for which our DM-PCD post processed output captures
a different loop than the UMAP projection. (A) Object 11 - While it appears at first glance that the DM-PCD output
matches the loop the UMAP projection contains, a closer look reveals (B) that the DM-PCD output actually captures
two loops. (C) Object 14 - Similarly to Object 11, the DM-PCD output contains multiple loops and UMAP projection
only captures one. (D) Object 2 - UMAP projection is not a complete loop, but DM-PCD produces a complete loop.
(E) Object 2 - UMAP projection of only Object 2’s images - a complete loop is visible. (F) Object 20 - UMAP
projection shows a single loop, while the DM-PCD output captures the same loop, but has an additional edge dividing
the loop.
For the remaining five objects, it is not as clear whether or not the DM-PCD output is correct. Close
ups of all five objects are shown in Figure 10. For each object, the figure shows the output at persistence
thresholds _δ_ = 0 (first row), _δ_ = 56 (second row), and _δ_ = 56 with critical edges longer than 1700 removed
(third row). Object 3 (Figure 10 (A)) and Object 18 (Figure 10 (E)) are not captured as a loop in either the
UMAP projection or in any DM-PCD output. The arcs appear to follow the arcs embedded in the UMAP
projection. Object 9 (Figure 10 (B)) does appear as a loop in the UMAP projection, but is captured as
a (double) arc by DM-PCD. Object 12 (Figure 10 (C)) is captured as a loop in UMAP, but is not in any
DM-PCD output. However an arc spanning most of the loop is clearly captured. Under different parameters,
DM-PCD was able to extract a loop. Object 16 (Figure 10 (D)) is captured as a loop in UMAP, and a loop is
only captured by DM-PCD with persistence threshold _δ_ = 0.
17
(A) Obj3 (B) Obj9 (C) Obj12 (D) Obj16 (E) Obj18
Figure 10: Coil: Zoom ins of DM-PCD outputs with persistence thresholds _δ_ = 0 (first row), _δ_ = 56 (second row), and
_δ_ = 56 with critical edges longer than 1700 removed (third row). The objects of focus are (A) Object 3, (B) Object 9,
(C) Object 12, (D) Object 16, and (E) Object 18.
A final note on comparing DM-PCD to UMAP projections - the metric distortion of UMAP became
apparent when viewing the DM-PCD outputs. There is metric distortion within classes - such as Object 20,
where there appears to be an extra edge in the DM-PCD output because the UMAP embedding does not
preserve the distances in the original space. There is also clear metric distortion in the UMAP embedding
with respect to object relationships. For example, before removing critical edges with length greater than
1700, both Objects 4 and 16 have an edge that connects to Object 8. However, once the thresholding is
applied, the edge connecting Objects 4 and 8 is removed and the edge connecting Objects 16 and 8 remains.
This would indicate that Object 16 is closer to Object 8 than Object 4 is, but Object 4 appears closer in the
UMAP embedding.
#### 7 Concluding Remarks
We generalized the DM-graph reconstruction algorithm to arbitrary filtrations, proved that the output of this
generalized algorithm is meaningful, and developed a method for graph reconstruction from high-dimensional
PCDs. Empirical results demonstrate the effectiveness of our DM-PCD approach.
Time complexity is the main limitation of our approach. The time to compute persistence is a function of
the size of the input filtration. While the theoretical worst case running time is cubic in this size, in practice
modern implementations (such as PHAT) perform in subquadratic time (we observe near-linear growth of
time w.r.t. the size of simplicial complex in our experiments). Hence reducing the size of filtration is crucial
in practice. While the sparsification strategy we used in this paper helps to bring down the size of filtration,
the reduction might not be significant enough for very large or more challenging datasets than what we
experiment with in our paper.
In addition to running time causing potential limitations, the raw output of our DM-PCD method must
be connected. As shown in Coil-20, with some post-processing we were able to capture individual objects
quite easily - but the proper post-processing approach will depend on individual datasets and may not be so
straight forward.
18
#### 8 Data and Code Availability
Code for both our new methodology and the baseline approach is publicly available at `[https://github.com/](https://github.com/lucasjmagee/PCD-Graph-Recon-DM)`
`[lucasjmagee/PCD-Graph-Recon-DM](https://github.com/lucasjmagee/PCD-Graph-Recon-DM)` . The repository also contains all datasets used in this manuscript.
#### References
[1] M. Aanjaneya, F. Chazal, D. Chen, M. Glisse, L. Guibas, and D. Morozov. Metric graph reconstruction
from noisy data. In _Proc._ _27th_ _Sympos._ _Comput._ _Geom._, pages 37–46, 2011.
[2] S. Banerjee, L. Magee, D. Wang, X. Li, B. Huo, J. Jayakumar, K. Matho, M. Lin, K. Ram,
M. Sivaprakasam, J. Huang, Y. Wang, and P. Mitra. Semantic segmentation of microscopic neuroanatomical data by combining topological priors with encoder-decoder deep networks. _Nature_ _Machine_
_Intelligence_, 2:585–594, 2020.
[3] M. Belkin and P. Niyogi. Laplacian eigenmaps for dimensionality reduction and data representation.
_Neural_ _Computation_, 15(6):1373–1396, 2003.
[4] Mikhail Belkin, Qichao Que, Yusu Wang, and X. Zhou. Toward understanding complex data: graph
laplacians on manifolds with singularities and boundaries. In _Conf._ _Learning_ _Theory_ _(COLT)_, pages
36.1–36.26, 2012. Journal of Machine Learning Research - Proceedings Track 23.
[5] Mickaël Buchet, Frédéric Chazal, Steve Y. Oudot, and Donald R. Sheehy. Efficient and robust persistent
homology for measures. In _Proceedings_ _of_ _the_ _Twenty-sixth_ _Annual_ _ACM-SIAM_ _Symposium_ _on_ _Discrete_
_Algorithms_, SODA ’15, pages 168–180, Philadelphia, PA, USA, 2015. Society for Industrial and Applied
Mathematics.
[6] Chen Cai, Nikolaos Vlassis, Lucas Magee, Ran Ma, Zeyu Xiong, Bahador Bahmani, Teng-Fong Wong,
Yusu Wang, and WaiChing Sun. Equivariant geometric learning for digital rock physics: estimating
formation factor and effective permeability tensors from morse graph, 2021.
[7] California Department of Transportation. Traffic flows at detector #409529, 2017.
[8] Gunnar Carlsson, Tigran Ishkhanov, Vin Silva, and Afra Zomorodian. On the local behavior of spaces of
natural images. _International_ _Journal_ _of_ _Computer_ _Vision_, 76:1–12, 01 2008.
[9] F. Chazal, D. Cohen-Steiner, and Q. Mérigot. Geometric inference for probability measures. _Foundations_
_of_ _Computational_ _Mathematics_, 11:733–751, 2011.
[10] Frédéric Chazal, Ruqi Huang, and Jian Sun. Gromov—hausdorff approximation of filamentary structures
using reeb-type graphs. _Discrete_ _Comput._ _Geom._, 53(3):621–649, April 2015.
[11] Frédéric Chazal, Vin de Silva, Marc Glisse, and Steve Oudot. _The_ _structure_ _and_ _stability_ _of_ _persistence_
_modules_ . Springer, 2018.
[12] David Cohen-Steiner, André Lieutier, and Julien Vuillamy. Lexicographic optimal chains and manifold
triangulations, 2019. available at URL: https://hal.archives-ouvertes.fr/hal-02391190/document.
[13] David Cohen-Steiner, André Lieutier, and Julien Vuillamy. Lexicographic optimal homologous chains
and applications to point cloud triangulations. In _36th_ _Sympos._ _Comput._ _Geom._ _(SoCG)_, 2020. to
appear, see also url: https://hal.archives-ouvertes.fr/hal-02391240/document.
[14] O. Delgado-Friedrichs, V. Robins, and A. Sheppard. Skeletonization and partitioning of digital images
using discrete morse theory. _IEEE_ _Trans._ _Pattern_ _Anal._ _Machine_ _Intelligence_, 37(3):654–666, March
2015.
[15] T. K. Dey, J. Wang, and Y. Wang. Graph reconstruction by discrete morse theory. In _Proc._ _Internat._
_Sympos._ _Comput._ _Geom._, pages 31:1–31:15, 2018.
19
[16] Tamal Dey, Jiayuan Wang, and Yusu Wang. Road network reconstruction from satellite images with
machine learning supported by topological methods. In _Proc._ _27th_ _ACM_ _SIGSPATIAL_ _Intl._ _Conf._ _Adv._
_Geographic_ _Information_ _Systems_ _(GIS)_, pages 520–523, 2019.
[17] Tamal K. Dey, Tao Hou, and Sayan Mandal. Computing minimal persistent cycles: Polynomial and hard
cases. In Shuchi Chawla, editor, _Proceedings_ _of_ _the_ _2020_ _ACM-SIAM_ _Symposium_ _on_ _Discrete_ _Algorithms,_
_SODA_ _2020,_ _Salt_ _Lake_ _City,_ _UT,_ _USA,_ _January_ _5-8,_ _2020_, pages 2587–2606. SIAM, 2020.
[18] Tamal K. Dey, Jiayuan Wang, and Yusu Wang. Improved road network reconstruction using discrete
morse theory. In _Proc._ _25th_ _ACM_ _SIGSPATIAL_ _Intl._ _Conf._ _Adv._ _Geographic_ _Information_ _Systems_ _(GIS)_,
pages 58:1–58:4, 2017.
[19] D.L. Donoho and C. Grimes. Hessian eigenmaps: Locally linear embedding techniques for highdimensional data. _Proceedings_ _of_ _the_ _National_ _Academy_ _of_ _Sciences_, 100(10):5591–5596, 2003.
[20] Herbert Edelsbrunner and John Harer. _Computational_ _Topology:_ _An_ _Introduction_ . Amer. Math. Soc.,
Providence, Rhode Island, 2010.
[21] R. Forman. Combinatorial vector fields and dynamic systems. _Mathematische_ _Zeitschrift_, 228(4):629–681,
1998.
[22] Robin Forman. A user’s guide to discrete Morse theory. _Séminare_ _Lotharinen_ _de_ _Combinatore_ _48_, 2002.
[23] Xiaoyin Ge, Issam I. Safa, Mikhail Belkin, and Yusu Wang. Data skeletonization via reeb graphs. In
J. Shawe-Taylor, R. S. Zemel, P. L. Bartlett, F. Pereira, and K. Q. Weinberger, editors, _Advances_ _in_
_Neural_ _Information_ _Processing_ _Systems_ _24_, pages 837–845. Curran Associates, Inc., 2011.
[24] A. Gyulassy, M. Duchaineau, V. Natarajan, V. Pascucci, E. Bringa, A. Higginbotham, and B. Hamann.
Topologically clean distance fields. _IEEE_ _Trans._ _Visualization_ _Computer_ _Graphics_, 13(6):1432–1439,
Nov 2007.
[25] T. J. Hastie. _Principal_ _curves_ _and_ _surfaces_ . PhD thesis, stanford university, 1984.
[26] B. Kégl and A. Krzyżak. Piecewise linear skeletonization using principal curves. _IEEE_ _Trans._ _Pattern_
_Anal._ _Machine_ _Intell._, 24:59–74, January 2002.
[27] Fabrizio Lecci, Alessandro Rinaldo, and Larry Wasserman. Statistical analysis of metric graph recon
struction. _J._ _Mach._ _Learn._ _Res._, 15(1):3425–3446, January 2014.
[28] A. Lee, K. Pedersen, and D. Mumford. The nonlinear statistics of high-contrast patches in natural
images. _International_ _Journal_ _of_ _Computer_ _Vision_, 54:83–103, 2004.
[29] Leland McInnes, John Healy, and James Melville. Umap: Uniform manifold approximation and projection
for dimension reduction, 2020.
[30] Nayar and H. Murase. Columbia object image library: Coil-100. Technical Report CUCS-006-96,
Department of Computer Science, Columbia University, February 1996.
[31] U. Ozertem and D. Erdogmus. Locally defined principal curves and surfaces. _Journal_ _of_ _Machine_
_Learning_ _Research_, 12:1249–1286, 2011.
[32] Jose A. Perea and John Harer. Sliding windows and persistence: An application of topological methods
to signal analysis. _Found._ _Comput._ _Math._ _(FoCM)_, 15:799––838, 2015. https://doi.org/10.1007/s10208014-9206-z.
[33] V. Robins, P. J. Wood, and A. P. Sheppard. Theory and algorithms for constructing discrete morse
complexes from grayscale digital images. _IEEE_ _Trans._ _Pattern_ _Anal._ _Machine_ _Intelligence_, 33(8):1646–
1658, Aug 2011.
[34] S.T. Roweis and L.K. Saul. Nonlinear Dimensionality Reduction by Locally Linear Embedding. _Science_,
290(5500):2323, 2000.
20
[35] Gurjeet Singh, Facundo Memoli, and Gunnar Carlsson. Topological Methods for the Analysis of High
Dimensional Data Sets and 3D Object Recognition. In M. Botsch, R. Pajarola, B. Chen, and M. Zwicker,
editors, _Eurographics_ _Symposium_ _on_ _Point-Based_ _Graphics_ . The Eurographics Association, 2007.
[36] Thierry Sousbie. The persistent cosmic web and its filamentary structure - i. theory and implementation.
_Monthly_ _Notices_ _of_ _the_ _Royal_ _Astronomical_ _Society_, 414:350 - 383, 06 2011.
[37] J.B. Tenenbaum, V. Silva, and J.C. Langford. A Global Geometric Framework for Nonlinear Dimension
ality Reduction. _Science_, 290(5500):2319, 2000.
[38] S. Wang, Y. Wang, and Y. Li. Efficient map reconstruction and augmentation via topological methods.
In _Proc._ _23rd_ _ACM_ _SIGSPATIAL_, page 25. ACM, 2015.
[39] Pengxiang Wu, Chao Chen, Yusu Wang, Shaoting Zhang, Changhe Yuan, Zhen Qian, Dimitris N. Metaxas,
and Leon Axel. Optimal topological cycles and their application in cardiac trabeculae restoration. In
_Information_ _Processing_ _in_ _Medical_ _Imaging_ _-_ _25th_ _International_ _Conference,_ _IPMI_ _2017,_ _Boone,_ _NC,_
_USA,_ _June_ _25-30,_ _2017,_ _Proceedings_, pages 80–92, 2017.
21
#### A Further Study of Alternative Approaches
Different input triangulations for baseline Our main experiments compare the quality of our DM-PCD
method to the baseline algorithm. baseline takes an input triangulation, for which we chose the Rips complex
at a fixed radius. We tested other input triangulations to highlight that the baseline approach fails regardless
of the input triangulation. Results are shown in Figure 11. Even using sparse weighted Rips complex at a
fixed radius large enough to capture the larger feature with less noise compared to a regular Rips complex,
the points forming the smaller feature are connected by nearly a clique. Using this triangulation with any
valid density function as input for the baseline algorithm results in the smaller feature being lost. It is also
shown that using the weighted Rips complex without sparsification results in a similar triangulation and final
output.
Different input filtrations for generalized algorithm Our DM-PCD algorithm takes a sparse weighted
Rips filtration of a point cloud dataset. However, we generalized the discrete Morse graph reconstruction
algorithm to take an arbitrary filtration. To highlight the utility of the sparse weighted Rips filtration, we run
the generalized discrete Morse graph reconstruction algorithm with both the regular Rips filtration and the
regular weighted Rips filtration. Results are shown in Figure 12. Using the regular Rips filtration, the output
captures the two features with a lot of additional noise. Trying to use persistence thresholding to remove the
noise will remove the smaller feature before all noise is removed. The regular weighted Rips filtration is able
to perfectly capture both features, similarly to using the sparse weighted Rips filtration. However, because
the persistence computation of the filtration is a bottleneck, the sparse filtration is a superior option for our
DM-PCD algorithm.
Dimensionality reduction of noisy data For noisy datasets, such as the image patches dataset, dimensionality reduction techniques alone fail to reveal meaningful structure. Results of such techniques are shown
in Figure 13. The main paper shows our DM-PCD algorithm extracts a clear three circle structure that is
known to be the true underlying structure of the image patches data. However, PCA, tSNE, and UMAP
projections of the image patches dataset reveal no meaningful structure (Figure 13 (A) - (C)). This is because
these methods do not look to preserve metric relations. In particular, tSNE attempts to cluster data and
UMAP attempts to preserve continuous structure. For cleaner data, such as Coil-20 (Figure 13 (D)), we
see that UMAP is able to capture structure. However, even applying PCA and UMAP (Figure 13 (E) and
(F)) to the much cleaner _X_ (15 _,_ 30) subset of image patches, we see that UMAP is still unable to capture the
known three circle structure of the data. Running the baseline and Mapper approaches on the PCA reduced
image patches data also fails to extract the correct structure. Results are shown in Figure 14. Running
baseline with a persistence threshold _δ_ = 2 results in a graph where three circles appear visible (Figure 14
(B)). However, the topology is incorrect, as all circles intersect twice (the first Betti number is equal to 7).
Raising the persistence threshold to 4 (Figure 14 (C)) results in an output with the correct first Betti number
equal to 5, but we have clearly lost the 3 circles. Mapper fails on the PCA reduced data and the output is
very similar to the output on the original data (Figure 14 (D)). This example highlights a general problem
with performing dimensionality reduction then performing graph reconstruction - one needs to reduce to
an appropriate dimension. Clearly it would not be possible to extract the correct graph structure from the
images patches dataset if it were first reduced to 2 dimensions. It turns out that reducing to 3 dimensions is
also too much, as we are unable to capture the proper (dis)connections between circles. Not having to reduce
dimension, and more so not needing to know the limit for dimensionality reduction, is a huge advantage to
our method.
#### B More Details on Experiments
Comparison of methods Our experiments compare the quality of outputs and computational efficiency
of our DM-PCD method with the baseline algorithm and the state-of-the-art ReebRecon algorithm. We also
compare the quality of outputs to those of the Mapper algorithm. We do not include Mapper running times
in our comparisons of computational efficiency because it is significantly faster than the other algorithms.
The ReebRecon algorithm has two outputs - a contracted output, which contains only non-degree two
nodes, and an augmented output, which contains edges going through every possible node in the domain.
While the contracted outputs are useful for examining the topology of the output, they do a poor job of
22
Fixed Radius = 2 Fixed Radius = 4 Fixed Radius = 8
Figure 11: Sparse weighted Rips complex at fixed radii (first row) with results of baseline using sparse weighted Rips
complex (second row) and full weighted Rips complex (third row). Fixed radii values of 2 (first column), 4 (second
column), and 8 (third column) are shown.
(A)
Rips Filtration
Persistence Threshold = 1
(B)
Rips Filtration
Persistence Threshold = 3
(C)
Weighted Rips Filtration
Persistence Threshold = 1
Figure 12: Results of using the generalized discrete Morse algorithm with the regular Rips filtration as input. At a
lower persistence threshold (A), both features are captured with additional noise. At a higher persistence threshold
(B), the smaller feature is lost while some noise remains. Using the weighted Rips filtration as input (C), the algorithm
is able to recover both features with no noise.
23
(A) PCA Image Patches
(B) tSNE Image Patches (C) UMAP Image Patches
(D) Coil-20 UMAP (E) PCA X(15, 30) (F) UMAP X(15, 30)
Figure 13: Outputs of various dimensionality reduction techniques (PCA, tSNE, and UMAP) performed on the
10,000 image patch subset ((A) - (C)), Coil-20 (D), and _X_ (15 _,_ 30) ((E) and (F)).
(A) PCA Image Patches (B) Baseline (δ = 2 (C) Baseline (δ = 4 (D) Mapper
Figure 14: PCA reduction of image patches dataset (A) and outputs of baseline with persistence thresholds 2 and 4
(B and C), and Mapper (base point filter) (D) on the PCA reduced image patches dataset.
24
(A) Contracted (B) Augmented (C) Smoothed
Figure 15: ReebRecon outputs on one circle dataset. The contracted output (A) and the augmented output (B) of
the ReebRecon algorithm with _r_ = _._ 25. The contracted output is useful in examining the topology of the output, but
does a poor job of preserving the geometry of the underlying skeleton. The augmented output better preserves the
geometry but contains a lot of noise. (C) is a smoothed augmented output with less noise.
preserving the underlying geometry of the output. On the other hand, the augmented outputs are very noisy
because every node is included. For this reason, the authors of the ReebRecon algorithm smooth outputs. We
smooth the augmented outputs by subsampling the arcs (non-degree two paths), and then perform standard
iterative smoothing on the remaining vertices. An example is shown in Figure 15. Unless otherwise noted,
the ReebRecon results displayed in figures are the smoothed augmented outputs. Ultimately, the quality
of the output is now dependant on the smoothing, and we note that different smoothing techniques may
result in better quality outputs. However, the topology of the outputs is often incorrect, and in such cases no
smoothing can make the output "correct".
The Mapper algorithm traditionally outputs a simplicial complex and was not developed to explicitly
extract underlying graph structures from data. For all of our experiments, we limit the Mapper output to be
a graph (1-dimensional simplicial complex). Each node in a graph outputted by Mapper represents a cluster
computed within the algorithm. We assign the coordinates of a node to be the average coordinates of the
cluster it represents.
In our time comparisons, ReebRecon is much slower than both DM-PCD and baseline. While we are using
an old implementation from 2011 that may not be optimized, it is known that ReebRecon is theoretically
faster than both DM-PCD and baseline, which have persistence computation as a bottleneck. DM-PCD tends
to be more efficient than baseline, as the sparsification in our algorithm builds a filtration that is linear in size
with respect to the number of points, whereas the regular Rips complex used in baseline results in a filtration
of size _O_ ( _n_ <sup>3</sup> ), and _r_ values large enough to capture the underlying skeleton will have much bigger filtrations.
One Circle dataset. The main paper shows that our DM-PCD algorithm is able to successfully capture the
circle, and both the baseline and ReebRecon capture the circle with _r_ = _._ 25. However, the quality of output
for both baseline and ReebRecon is heavily dependent on the value of _r_ - more specifically the corresponding
rips <sup>_r_</sup> ( _P_ ) complex. Shown in the first row of Figure 16 is the rips <sup>_r_</sup> ( _P_ ) complex for _r_ values of .1 (A), .2 (B),
.25 (C), and 1.05 (D). The second and third rows contain results of baseline and ReebRecon. All ReebRecon
outputs are smoothed with no subsampling, a neighborhood radius of 2 neighbors, and 5 iterations - except
for (D), where the output is a spanning tree and smoothing does not improve output quality. With an _r_
value too small (.1), the underlying skeleton is not contained in rips <sup>_r_</sup> ( _P_ ), and neither method will be able
to produce a desirable output. It is not enough to select an _r_ value that results in the complex containing
the underlying skeleton. For _r_ = _._ 2, the circle is captured by the rips <sup>_r_</sup> ( _P_ ) complex, but so is an additional
spurious loop. Neither baseline or ReebRecon can produce an output not containing the spurious loop. For
_r_ = 1 _._ 05, there are no additional spurious loops in the rips <sup>_r_</sup> ( _P_ ) complex, but ReebRecon produces a spanning
tree and baseline, while producing a single loop, loses the geometry of the underlying skeleton.
For this dataset, _r_ = _._ 25 was an appropriate selection for both baseline and ReebRecon. However, as shown
in Table 1, the size of the rips <sup>_r_</sup> ( _P_ ) complex is much bigger than the sparsified weighted Rips complex used in
our DM-PCD algorithm. Complex size is particularly costly for our DM-PCD method and the baseline method
because of the persistence computation. While baseline was able to produce a reasonable output at _r_ = _._ 25, it
took significantly more time than our DM-PCD algorithm.
While smoothing certainly decreases the noise in the ReebRecon output, the output quality is still worse
25
(A) r = .1 (B) r = .2 (C) r = .25 (D) r = 1.05
Figure 16: One circle data - rips <sup>_r_</sup> ( _P_ ) complex (first row), baseline outputs (second row), and ReebRecon outputs
(third row). (A) _r_ = _._ 1 - rips <sup>_r_</sup> ( _P_ ) complex fails to capture the circle, resulting in both methods failing to capture the
circle. (B) _r_ = _._ 2 - rips <sup>_r_</sup> ( _P_ ) complex now contains the circle, but also contains a spurious loop. Both the baseline
output, which was generated with persistence threshold _δ_ = _∞_, and the ReebRecon output must contain this spurious
loop (C) _r_ = _._ 25 - rips <sup>_r_</sup> ( _P_ ) complex now contains the circle without any additional spurious loops. Both the baseline
output ( _δ_ = _∞_ ) and the ReebRecon output capture the loop. (D) _r_ = 1 _._ 05 - rips <sup>_r_</sup> ( _P_ ) complex still contains the circle,
as well as many more simplices. As a result, the baseline output has lost its nice geometry, with long edges going
through high density regions, and the ReebRecon output is a spanning tree.
than that of both DM-PCD and baseline. We comment that a different smoothing method may result in a
better quality output.
Additionally, the main paper shows that the Mapper approach is also able to successfully capture the
circle. We show the Mapper results with a variety of filter functions in Figure 17. The graph Laplacian
filter and the distance to base point filter are able to capture the circle, while the eccentricity filter and the
Gaussian density filter are unable to capture the true underlying structure of the data. The heat maps of the
filter functions shown in the first row of Figure 17 provide intuition on why each filters is either successfully
or unsuccessfully used to extract the underlying structure with Mapper. These two filter functions will be the
top choices for most of the remaining datasets.
Two Circle dataset. The main paper shows that our DM-PCD algorithm is able to successfully capture
both circles, while both baseline and ReebRecon failed to capture both circles. Again, this is because both
methods are heavily dependent on the input triangulation (the rips <sup>_r_</sup> ( _P_ ) complex). This complex at various
values of _r_ is shown in the first row of Figure 18, while the corresponding baseline and ReebRecon outputs are
shown in the second and third rows respectively. All ReebRecon outputs are smoothed with no subsampling, a
neighborhood radius of 2 neighbors, and 10 iterations. Neither result can contain the larger circle if the input
triangulation itself does not contain the larger circle, so we increase values of _r_ until the complex contains
the larger circle. _r_ = 1 is too small to capture even the smaller circle. At _r_ = 1 _._ 5, the complex does contain
the smaller circle, and both baseline and ReebRecon are able to successfully extract the loop. However, at
_r_ = 2 and _r_ = 3, the complex still does not contain the larger circle, and more noise around the smaller circle
is added to the outputs. Finally, at _r_ = 4, the larger circle is contained within the complex. However there
are two issues. Firstly, there is a spurious loop in the complex along the larger circle, so while _r_ = 4 is able to
capture the larger circle, it is still not an appropriate value of _r_ . We would need to try to find a new _r_ value
that better captures the data if not for the second issue - the smaller circle is lost in both outputs - meaning
26
(A) Graph Laplacian (B) Eccentricity (C) Density (D) Base Point
Figure 17: One circle data - Filter function values (first row) and corresponding Mapper outputs (second row) with
filter functions - (A) graph Laplacian filter ( _k_ = 15), (B) eccentricity filter, (C) Gaussian density filter, (D) distance to
base point filter.
<u>Method</u> <u>Radius</u> <u>#</u> <u>Simplices</u> <u>Time</u> <u>(seconds)</u>
<u>Our</u> <u>Method</u> _<u>∞</u>_ <u>368276</u> <u>2.6</u>
<u>Baseline</u> <u>.05</u> <u>33368</u> <u>.1</u>
<u>Reeb</u> <u>Graph</u> <u>.05</u> <u>33368</u> <u>.03</u>
<u>Baseline</u> <u>.10</u> <u>356925</u> <u>1.1</u>
<u>Reeb</u> <u>Graph</u> <u>.10</u> <u>356925</u> <u>2.49</u>
<u>Baseline</u> <u>.15</u> <u>1490149</u> <u>5.4</u>
<u>Reeb</u> <u>Graph</u> <u>.15</u> <u>1490149</u> <u>21.05</u>
<u>Baseline</u> <u>.2</u> <u>3869507</u> <u>13.0</u>
<u>Reeb</u> <u>Graph</u> <u>.2</u> <u>3869507</u> <u>76.46</u>
<u>Baseline</u> <u>.25</u> <u>7708243</u> <u>44.8</u>
<u>Reeb</u> <u>Graph</u> <u>.25</u> <u>7708243</u> <u>221.25</u>
<u>Baseline</u> <u>.5</u> <u>43392850</u> <u>231.1</u>
<u>Reeb</u> <u>Graph</u> <u>.5</u> <u>43392850</u> <u>3445.10</u>
Table 1: One circle dataset: Comparison of radius used, # simplices, and running time of DM-PCD, baseline,
and ReebRecon. Our algorithm has radius _∞_ as we run on the full sparse DTM-Rips filtration.
27
(A) r = 1 (B) r = 1.5 (C) r = 2 (D) r = 3 (E) r = 4
Figure 18: The rips <sup>_r_</sup> ( _P_ ) complex (first row), baseline outputs (second row), and ReebRecon outputs (third row). All
baseline outputs were generated using persistence threshold zero, meaning that no simplification occurred. (A) _r_ = 1 rips <sup>_r_</sup> ( _P_ ) complex fails to capture either circle, resulting in both methods failing to capture either circle. (B) _r_ = 1 _._ 5
- rips <sup>_r_</sup> ( _P_ ) complex now contains the smaller circle but not the larger circle. Both outputs successfully capture the
smaller circle, but fail to capture the larger circle. (C) _r_ = 2 - rips <sup>_r_</sup> ( _P_ ) complex now connects the noise inside of the
smaller circle to the smaller circle, while still not containing the larger circle. The outputs now capture the smaller
circle and some noise inside of the circle, and still fail to capture the larger circle. (D) _r_ = 3 - rips <sup>_r_</sup> ( _P_ ) complex
still does not contain the larger circle, and contains many edges cutting across the smaller circle. The ReebRecon
output captures the smaller circle with more noise, while the baseline output has begun to lose the smaller circle.
Both outputs fail to capture the larger circle. (E) _r_ = 4 - rips <sup>_r_</sup> ( _P_ ) complex now contains the larger circle, as well as a
spurious loop, and the points forming the smaller circle now nearly form a clique. The outputs capture the larger
circle, but contain a spurious loop, and the smaller circle is completely lost.
an appropriate value of _r_ does not exist for either method. We can see that in the rips <sup>_r_</sup> ( _P_ ) complex at _r_ = 4,
the points forming the smaller circle now nearly form a clique, which results in both baseline and ReebRecon
outputs losing the smaller circle. We conclude that there is no value for _r_ that will result in either method
capturing both circles. Running time and simplicial complex size comparisons are shown in Table 2. For
radius _r_ = 4, we see that the number of simplices used in both baseline and ReebRecon is nearly double that
of the filtration used by DM-PCD. As a result, the running times of baseline and ReebRecon are longer than
that of DM-PCD.
Additionally, the main paper shows that Mapper was able to successfully capture both features of the two
circle dataset. Further results for different filter functions are shown in Figure 19. Similarly to the results of
the one circle dataset, Mapper was able to successfully capture both features when using either the graph
Laplacian filter or distance to base point filter. Looking at the heat map for the eccentricity filter, we see
that it would also appear to be an acceptable choice for this particular dataset. The output captures the
larger feature and is unable to capture the smaller feature. The density filter once again fails to extract any
meaningful structure from the dataset.
Image patches dataset. The main paper shows that our DM-PCD algorithm is able to successfully extract
the "three-circle model" from a random 10,000 point subset of the image patches dataset from [8], while
baseline, ReebRecon, and Mapper methods are unable to do so. We run baseline with rips <sup>_._</sup> <sup>75</sup> ( _P_ ) as the input
complex. We tried several _r_ values less than _._ 75, as well as _r_ = _._ 8. For _r_ values less than _._ 75, there were many
spurious loops that could not be removed with persistence thresholding. For _r_ = _._ 8, the desired three-circles
are not completely recovered even with no persistence thresholding. Results at various persistence thresholds
are shown in Figure 20. Although the output does contain the three circles we wish to extract, it is also
28
(A) Graph Laplacian (B) Eccentricity (C) Density (D) Base Point
Figure 19: Two circle dataset: filter function values (first row) and corresponding Mapper outputs (second row) using
(A) graph Laplacian filter ( _k_ = 15), (B) eccentricity filter, (C) Gaussian density filter, (D) distance to base point filter.
<u>Method</u> <u>Radius</u> <u>#</u> <u>Simplices</u> <u>Time</u> <u>(seconds)</u>
<u>Our</u> <u>Method</u> _<u>∞</u>_ <u>19497</u> <u>.06</u>
<u>Baseline</u> <u>1</u> <u>2182</u> <u>.002</u>
<u>Reeb</u> <u>Graph</u> <u>1</u> <u>2182</u> <u>.01</u>
<u>Baseline</u> <u>2</u> <u>8350</u> <u>.013</u>
<u>Reeb</u> <u>Graph</u> <u>2</u> <u>8350</u> <u>.02</u>
<u>Baseline</u> <u>3</u> <u>20005</u> <u>.045</u>
<u>Reeb</u> <u>Graph</u> <u>3</u> <u>20005</u> <u>.05</u>
<u>Baseline</u> <u>4</u> <u>41349</u> <u>.13</u>
<u>Reeb</u> <u>Graph</u> <u>4</u> <u>41349</u> <u>.25</u>
Table 2: Two circle dataset: Comparison of running time of DM-PCD, baseline, and ReebRecon. Our algorithm
has radius _∞_ as we run on the full sparse DTM-Rips filtration.
29
(A) δ = 0 (B) δ = 5 (C) δ = 10 (D) δ = ∞
Figure 20: Image Patches: Outputs of baseline with rips <sup>_r_</sup> ( _P_ ) complex ( _r_ = _._ 75) as the input triangulation at various
persistence thresholds. (A) _δ_ = 0 - With no thresholding of critical edges, the output captures the three circles that we
expect to, as well as additional loops. (B) _δ_ = 5 - Raising the persistence threshold allows for some of the additional
loops to be removed while keeping the three circles we expect. (C) _δ_ = 10 - Further raising the persistence threshold
results in losing part of the horizontal circle while keeping extra loops. (D) _δ_ = inf - Removing all critical edges except
those with infinity persistence removes more of the desired three circle output and keeps loops not part of the desired
output.
made up of several additional loops. Raising the persistence threshold to 5 removes some of the additional
loops, but raising the persistence threshold to 10 removes part of the desired three circle model without
removing the remaining additional loops. In fact, raising the persistence threshold to _∞_, we see that some
of these incorrect loops are a product of the input triangulation, and it is not possible to achieve a desired
output from baseline with _r_ = _._ 75. While it may still be possible for a "good" _r_ value to exist, it is extremely
expensive to compute persistence on triangulations with this many simplices.
Running time and simplicial complex size comparisons are shown in Table 3. For radius _r_ = _._ 75, we see
that the number of simplices used in baseline is over 50,000,000 greater than the number of simplices in the
filtration used by DM-PCD. Although DM-PCD takes longer to compute persistence even with a smaller
filtration, the DM-PCD filtration has an implied _r_ = _∞_, and that any sizable increase to _r_ = _._ 75 for baseline
will result in a significant increase in running time. We note that for all values of _r_, the number of simplices
used in baseline would be the same number of simplices used by ReebRecon.
Additionally, the main paper shows that Mapper was unable to capture the true underlying structure of
the image patches dataset. Further results for different filter functions are shown in Figure 21. Gaussian
density and eccentricity filters fail, as seen in previous datasets. However, unlike the previous dataset, the
graph Laplacian and distance to base point filters also fail to capture the underlying structure. This data is
simply too noisy for Mapper to extract the underlying structure.
Finally, while our algorithm is deterministic, this dataset is generated from a random 10K point subset.
In an attempt to quantify the error, we generated 10 different random subsets to apply our method to. On
all 10 datasets, our method extracts the 3 circles correctly. To quantify error, we computed the distance
between two output graphs _Gi_, _Gj_ by calculating the average distance between each node in one graph to its
nearest node in the other graph, and normalizing this distance by the diameter of the full 50K point dataset.
The result was 0 _._ 036 average error.
<u>Method</u> <u>Radius</u> <u>#</u> <u>Simplices</u> <u>Time</u> <u>(seconds)</u>
<u>Our</u> <u>Method</u> _<u>∞</u>_ <u>209397755</u> <u>16089.4</u>
<u>Baseline</u> <u>.25</u> <u>77261</u> <u>.15</u>
<u>Baseline</u> <u>.75</u> <u>263787145</u> <u>1485.42</u>
Table 3: Image Patches dataset: Comparison of running time of DM-PCD and baseline. Our algorithm has
radius _∞_ as we run on the full sparse DTM-Rips filtration.
Traffic flow dataset. We also test on point clouds derived from traffic flow data [7]. We extract two
datasets: the time-series of traffic flow at detector #409529 from time-range 10/1/2017 to 10/14/2017 and
from time-range 11/19/2017 to 12/2/2017 (which includes Thanksgiving). Each time-series is mapped to a
point cloud dataset in R <sup>6</sup> via time-delay embedding.
30
(A) Graph Laplacian (B) Eccentricity (C) Density (D) Base Point
Figure 21: Image patches: Outputs of Mapper using different filter functions - (A) graph Laplacian filter ( _k_ = 15),
(B) eccentricity filter, (C) Gaussian density filter, (D), distance to base point filter. The dataset is too noisy and none
of the filters result in Mapper outputting a graph representative of the true underlying structure.
Given a time series _f_ : _t−_ _>_ R and a parameter _τ_, the lift defined by _φ_ ( _t_ ) = ( _f_ ( _t_ ) _, f_ ( _t_ + _τ_ ) _, ..., f_ ( _t_ + _Mτ_ )) is
called a time delay embedding. For each traffic flow function, we create a PCD using a time delay embedding
with _M_ = 5 and _τ_ = 50. The two dimensional projections of these PCDs are shown in Figure 4 (B) of the
main paper. The first function’s time delay embedding projection appears to be a single loop, while the
second appears to have an inner loop and an outer loop.
The main paper shows the results of our DM-PCD algorithm with _k_ = 30 on both time series datasets. So
far in our experiments, a default value of _k_ = 15 has been used. By the nature of time delay embeddings,
which may create clumps of points close together, different values of _k_ can produce markedly different results.
Shown in Figure 22 are results of DM-PCD on the two datasets with _k_ values of 15, 30, and 40. For the
first dataset (10/1/2017 - 10/14/2017), a single loop is captured with all values of _k_ . For the second dataset
(11/19/2017 - 12/2/2017), changing the value of _k_ results in more drastic changes in the output. The
persistence thresholds for the outputs are 8.25 ( _k_ = 15), 12.5 ( _k_ = 30), and 12.84 ( _k_ = 40). In all cases, if
the persistence threshold were raised enough to further threshold the output, a portion of the outer loop
would be lost. We note that our output must be connected, so the desired result is two loops with a single
connection. The output with _k_ = 15 contains many extra connections, while the output with _k_ = 30 contains
a single extra connection. With _k_ = 40, the desired output is achieved.
Also shown in the main paper, baseline is able to successfully capture the single loop of the first time
series dataset. Results for baseline on the second time series dataset are shown in Figure 23. The persistence
thresholds for the outputs are 8 ( _k_ = 15), 5 ( _k_ = 30), and 3 ( _k_ = 40). Just like the results for DM-PCD in
Figure 22, if the persistence thresholds were raised enough to further threshold the output, a portion of the
outer loop would be lost, making the output of DM-PCD superior.
Running time and simplicial complex size comparisons for 10/1/2017 - 10/14/2017 and 11/19/2017 12/2/2017 traffic flows are shown in Table 4 and 5 respectively. Note that the baseline results shown in the
main paper use _r_ = 90 and _r_ = 75 respectively. For the first dataset, we see that the number of simplices used
by the baseline with _r_ = 90 is more than five times greater than the number of simplices used in DM-PCD.
This results in longer running time for baseline. For the second dataset, the number of simplices used by the
baseline with _r_ = 75 is a little less than three times greater than the number of simplices used in DM-PCD.
While the running time remained shorter for baseline in this particular instance, we note that an increase in
the value of _r_ can add a significant amount of simplices and push the running time to be longer than the
DM-PCD running time. We again note that for all values of _r_, the number of simplices used in baseline would
be the same number of simplices used by ReebRecon.
Additionally, the main paper shows that Mapper was able to extract the structure behind traffic flow from
10/1/2017 to 10/14/2017, but was unable to do so for traffic flow from 11/19/2017 to 12/2/2017. Results of
Mapper on both datasets using a variety of filter functions is shown in Figure 24. Again, using the graph
Laplacian and distance to base point filters allowed Mapper to extract the single loop structure behind the
first dataset. However, Mapper is unable to extract the two loop structure behind the second dataset with
these filters, along with eccentricity and Gaussian density filters. In contrast, DM-PCD was able to get the
true underlying structure behind both datasets.
31
<u>Method</u> <u>Radius</u> <u>#</u> <u>Simplices</u> <u>Time</u> <u>(seconds)</u>
<u>Our</u> <u>Method</u> _<u>∞</u>_ <u>6,879,338</u> <u>98.6</u>
<u>Baseline</u> <u>75</u> <u>14,646,522</u> <u>54.7</u>
<u>Baseline</u> <u>90</u> <u>35,543,784</u> <u>123.903</u>
Table 4: Traffic (10/1/2017 - 10/14/2017) dataset: comparison of running time of DM-PCD and baseline. Our
algorithm has radius _∞_ as we run on the full sparse DTM-Rips filtration.
<u>Method</u> <u>Radius</u> <u>#</u> <u>Simplices</u> <u>Time</u> <u>(seconds)</u>
<u>Our</u> <u>Method</u> _<u>∞</u>_ <u>5,720,309</u> <u>106.1</u>
<u>Baseline</u> <u>60</u> <u>5,157,336</u> <u>16.8</u>
<u>Baseline</u> <u>75</u> <u>15,659,797</u> <u>57.7</u>
Table 5: Traffic (11/19/2017 - 12/2/2017) dataset: comparison of running time of DM-PCD and baseline. Our
algorithm has radius _∞_ as we run on the full sparse DTM-Rips filtration.
(A) k = 15 (B) k = 30 (C) k = 40
Figure 22: Traffic flow: Outputs of DM-PCD on both datasets (10/1/2017 - 10/14/2017 top row, 11/19/2017 12/2/2017 bottom row) with different values of _k_ . (A) _k_ = 15 - Single loop captured in first dataset, two loops
captured with extra connections in second dataset. (B) _k_ = 30 - Single loop captured in first dataset, two loops
captured with an extra connection in second dataset. (C) _k_ = 40 - Single loop captured in first dataset, two loops
captured with a single connection in second dataset.
32
(A) k = 15 (B) k = 30 (C) k = 40
Figure 23: Traffic flow: Outputs of baseline method on the second traffic time series dataset (11/19/2017 - 12/2/2017)
at different values of _k_ - (A) _k_ = 15, (B) _k_ = 30, (C) _k_ = 40. In all cases, any further simplification will lose the outer
loop before removing any connections with the inner loop.
(A) Graph Laplacian (B) Eccentricity (C) Density (D) Base Point
Figure 24: Traffic flow: Outputs of Mapper on both datasets using different filter functions - (A) graph Laplacian
filter ( _k_ = 15), (B) eccentricity filter, (C) Gaussian density filter, (D), distance to base point filter. The structure of
traffic flow from 10/1/2017 to 10/14/2017 (first row) is captured by Mapper using the graph Laplacian filter function
and the distance to base point filter function, while the structure of traffic flow from 11/19/2017 to 12/2/2017 (second
row) is not captured by Mapper using any of the filter functions.
Coil-20. Similarly to the two circle example, both the baseline and ReebRecon approaches are unable to
capture all coils because the coils have varying scales in the original space. A concrete example is shown in
Figure 25, where Objects 1 and 17 cannot be captured at the same scale. We also applied Mapper to Coil-17
using a base point filter. While Mapper can extract the structure of individual objects quite well, the method
also struggles to capture all coils. Focusing on Objects 1 and 17 again, we see that by changing the epsilon
parameter of the density clustering scheme we use inside of Mapper, we are able to capture the structure of
either Object 1 or Object 17, but not both (results shown in Figure 26). While it may be possible that a
different clustering scheme (or different covering and filter function combinations) could lead to a Mapper
configuration that can capture both objects, finding parameters able to capture all coils would be difficult.
33
(A) Obj17, r = 700 (B) Obj1, r = 700 (C) Obj17, r = 1000 (D) Obj1, r = 1000
Baseline
Reeb
Figure 25: Coil: Objects 1 and 17 with baseline and ReebRecon outputs. (A) Object 17, _r_ = 700 - Object 17 is
captured by both methods. (B) Object 1, _r_ = 700 - Object 1 is not captured by either method. (C) Object 17,
_r_ = 1000 - Object 17 is not captured by either method. (D) Object 1, _r_ = 1000 - Object 1 is captured by both
methods.
(A) Obj17, EPS = 650 (B) Obj1, EPS = 650 (C) Obj17, EPS = 1200 (D) Obj1, EPS = 1200
Figure 26: Coil: Objects 1 and 17 with Mapper outputs generated using a base point filter function. (A) Object 17,
_EPS_ = 650 - structure of Object 17 is captured. (B) Object 1, _EPS_ = 650 - structure of Object 1 is not captured.
(C) Object 17, _EPS_ = 1200 - structure of Object 17 is not captured. (D) Object 17, _EPS_ = 1200 - structure of
Object 1 is captured.
34
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.