Graph-Based Clustering and Data Visualization in PythonThe graphclust toolbox

Appendix C
The example gallery

Every algorithm of the toolbox has at least one runnable example script. The scripts generate their own data, explain the method in their comments, and end with a study of the main parameters. The same scripts produce the gallery of the online documentation, the Jupyter notebooks, and every computed figure and code listing of this book. The tables below list them by folder of examples/, with the first figure of the book that each script produced.

C.1 Graphs from data

Folder examples/01_graphs/. The methods are described in chapter 2.

Script

Topic

Figure

plot_01_proximity_graphs.py

Proximity graphs and their nesting

2.2

   

plot_02_geodesic_distances.py

Geodesic distances on a neighborhood graph

2.3

   

C.2 Vector quantization and topology learning

Folder examples/02_topology/. The methods are described in chapter 3.

Script

Topic

Figure

plot_01_neural_gas.py

Neural gas learns the shape of the data

3.2

   

plot_02_trn.py

Topology representing networks

3.3

   

plot_03_growing_networks.py

Growing networks: GNG, GWR, DTRN and WINN

3.4

   

plot_04_edge_lifetime.py

Edge lifetime decides which links survive

3.5

   

C.3 Clustering with spanning trees

Folder examples/03_trees/. The methods are described in chapter 4.

Script

Topic

Figure

plot_01_mst_zahn.py

Zahn’s MST clustering and the chaining effect

4.2

   

plot_02_hybrid_mst_gg.py

Hybrid MST–Gath–Geva clustering cuts the chain

4.3

   

plot_03_curves_initialization.py

Volume-based splitting as initialization of Gaussian mixtures

4.4

   

plot_04_iris.py

Hybrid MST–GG on the Iris data

4.5

   

plot_05_hdbscan.py

HDBSCAN*: density-corrected spanning trees

4.6

   

C.4 Shared neighbors, densities, and communities

Folder examples/04_neighborhoods/. The methods are described in chapter 5.

Script

Topic

Figure

plot_01_jarvis_patrick.py

Jarvis–Patrick clustering and its two integer parameters

5.2

   

plot_02_fuzzy_similarity.py

Fuzzy neighborhood similarity: MDS, VAT and dendrogram

5.3

   

plot_03_wine.py

Fuzzy neighborhood distances on the Wine data

5.4

   

plot_04_snn_density_peaks.py

Shared-neighbor density and density peaks

5.5

   

plot_05_spectral_communities.py

Spectral clustering and graph communities

5.6

   

C.5 Visual assessment and the quality of maps

Folder examples/05_assessment/. The methods are described in chapter 6.

Script

Topic

Figure

plot_01_vat_ivat.py

VAT and iVAT images

6.2

   

plot_02_quality_measures.py

Measuring the quality of a map

6.3

   

C.6 Distance- and neighborhood-preserving maps

Folder examples/06_classical_maps/. The methods are described in chapter 7.

Script

Topic

Figure

plot_01_distance_maps.py

PCA, Sammon mapping and MDS

7.2

   

plot_02_neighborhood_maps.py

LPP, the self-organizing map and incremental grid growing

7.3

   

C.7 Topology-preserving maps

Folder examples/07_topology_maps/. The methods are described in chapter 8.

Script

Topic

Figure

plot_01_isomap_isotop_cda.py

Isomap, Isotop and curvilinear distance analysis

8.2

   

plot_02_ovi_gnlp_trnmap.py

OVI-NG, GNLP-NG and TRNMap

8.3

   

plot_03_component_planes.py

TRNMap component planes

8.4

   

plot_04_number_of_nodes.py

Number of nodes in TRNMap and the mapping quality

8.5

   

C.8 Neighbor-graph embeddings

Folder examples/08_neighbor_embedding/. The methods are described in chapter 9.

Script

Topic

Figure

plot_01_spectral_embeddings.py

Laplacian eigenmaps and diffusion maps

9.2

   

plot_02_umap_tsne.py

UMAP and t-SNE on handwritten digits

9.3

   

C.9 Comparative studies

Folder examples/09_case_studies/. The methods are described in chapter 10.

Script

Topic

Figure

plot_01_combinations.py

Combining quantization, distance and mapping

10.1

   

plot_02_compare_maps.py

Quantitative comparison of topology-based maps

10.2

   

plot_03_real_data.py

Mapping real data: Wine and Wisconsin breast cancer

10.3