Hypergraph Analysis and Visualization in PythonThe hatvis toolbox

Appendix C
The example gallery

Every method of the toolbox has at least one runnable example script. The scripts load or generate their data, explain the method in their comments, and print the numbers quoted in the text. 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 Representations and interchange

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

Script

Topic

Figure

plot_01_quickstart.py

A first hypergraph: incidence matrix, dual and degrees

1.3

plot_02_projection_loss.py

What the clique expansion forgets

2.2

plot_03_expansions_and_spectra.py

Expansions, line graphs and Laplacian spectra

2.3

plot_04_interchange.py

Interchange: HIF, HyperGodot files and other Python libraries

2.5

C.2 Matrix views

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

Script

Topic

Figure

plot_05_seriation.py

Seriation of the incidence matrix

3.2

plot_06_biclusters.py

Biclusters of the manufacturing space

3.3

plot_07_paoh.py

PAOH: a dynamic hypergraph without clutter

3.4

plot_08_upset.py

UpSet view of frequent theme combinations

3.5

C.3 Node-link and set views

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

Script

Topic

Figure

plot_09_layouts.py

Six layouts of the same hypergraph

4.2

plot_10_hyperedge_styles.py

Seven ways to draw a hyperedge

4.3

plot_11_groups.py

Comparing groups: human and machine work

4.4

plot_12_primal_dual.py

Linked primal and dual views

4.5

plot_13_circular_and_interactive.py

Circular drawing and the interactive HTML viewer

4.6

C.4 Similarity-based visualization

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

Script

Topic

Figure

plot_14_hatvis_pipeline.py

The HAT-VIS pipeline step by step

5.2

plot_15_electric_car.py

HAT-VIS case study: developing an autonomous electric car

5.3

plot_16_membership_layout.py

Membership-aware layout: similarity with fewer intrusions

5.4

C.5 Walks, connectivity, and centrality

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

Script

Topic

Figure

plot_17_s_walks.py

s-walks: how strongly are hyperedges connected?

6.2

plot_18_wire_harness_centrality.py

Critical elements of the manufacturing space

6.4

plot_19_centrality_family.py

A family of hypergraph centralities

6.5

plot_20_hypercores.py

Hyper-cores

6.6

C.6 Clustering and partitioning

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

Script

Topic

Figure

plot_21_planted_communities.py

Community detection on a planted-partition hypergraph

7.2

plot_22_cell_formation.py

Forming manufacturing cells from the hypergraph

7.3

plot_23_partitioning.py

Balanced partitioning and normalized cuts

7.4

plot_24_coclustering.py

Co-clustering vertices and hyperedges

7.5

C.7 Frequent patterns and association rules

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

Script

Topic

Figure

plot_25_itemset_hypergraph.py

Frequent itemsets as a hypergraph

8.2

plot_26_association_rules.py

Association rules as a directed hypergraph

8.4

plot_27_validated_hyperedges.py

Statistically validated hyperedges

8.5

C.8 Higher-order structure and null models

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

Script

Topic

Figure

plot_28_h_motifs.py

h-motifs and their significance

9.2

plot_29_simpliciality.py

Simpliciality and nestedness: hypergraph or simplicial complex?

9.3

plot_30_null_models.py

Null models: what is structure and what is chance?

9.4

C.9 Combinatorial problem solving

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

Script

Topic

Figure

plot_31_sensor_placement.py

Covering and hitting: minimal monitoring sets

10.2

plot_32_acyclicity.py

Acyclic hypergraphs and join trees

10.3

plot_33_directed_assembly.py

Directed hypergraphs: assembly feasibility and cost

10.4

plot_34_qfd_optimization.py

QFD: which specifications should be developed?

10.5

C.10 Dynamics and learning

Folder examples/10_dynamics_learning/. The methods are described in chapter 11.

Script

Topic

Figure

plot_35_diffusion_consensus.py

Diffusion and group consensus

11.2

plot_36_contagion.py

Threshold contagion through groups

11.3

plot_37_learning.py

Semi-supervised learning and hyperedge prediction

11.4

C.11 Temporal and comparative analysis

Folder examples/11_temporal/. The methods are described in chapter 12.

Script

Topic

Figure

plot_38_evolving_narratives.py

Evolving narratives in a temporal hypergraph

12.2

plot_39_comparing_systems.py

Comparing two versions of a production system

12.3