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 | |
|
plot_02_projection_loss.py |
What the clique expansion forgets | |
|
plot_03_expansions_and_spectra.py |
Expansions, line graphs and Laplacian spectra | |
|
plot_04_interchange.py |
Interchange: HIF, HyperGodot files and other Python libraries |
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 | |
|
plot_06_biclusters.py |
Biclusters of the manufacturing space | |
|
plot_07_paoh.py |
PAOH: a dynamic hypergraph without clutter | |
|
plot_08_upset.py |
UpSet view of frequent theme combinations |
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 | |
|
plot_10_hyperedge_styles.py |
Seven ways to draw a hyperedge | |
|
plot_11_groups.py |
Comparing groups: human and machine work | |
|
plot_12_primal_dual.py |
Linked primal and dual views | |
|
plot_13_circular_and_interactive.py |
Circular drawing and the interactive HTML viewer |
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 | |
|
plot_15_electric_car.py |
HAT-VIS case study: developing an autonomous electric car | |
|
plot_16_membership_layout.py |
Membership-aware layout: similarity with fewer intrusions |
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? | |
|
plot_18_wire_harness_centrality.py |
Critical elements of the manufacturing space | |
|
plot_19_centrality_family.py |
A family of hypergraph centralities | |
|
plot_20_hypercores.py |
Hyper-cores |
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 | |
|
plot_22_cell_formation.py |
Forming manufacturing cells from the hypergraph | |
|
plot_23_partitioning.py |
Balanced partitioning and normalized cuts | |
|
plot_24_coclustering.py |
Co-clustering vertices and hyperedges |
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 | |
|
plot_26_association_rules.py |
Association rules as a directed hypergraph | |
|
plot_27_validated_hyperedges.py |
Statistically validated hyperedges |
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 | |
|
plot_29_simpliciality.py |
Simpliciality and nestedness: hypergraph or simplicial complex? | |
|
plot_30_null_models.py |
Null models: what is structure and what is chance? |
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 | |
|
plot_32_acyclicity.py |
Acyclic hypergraphs and join trees | |
|
plot_33_directed_assembly.py |
Directed hypergraphs: assembly feasibility and cost | |
|
plot_34_qfd_optimization.py |
QFD: which specifications should be developed? |
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 | |
|
plot_36_contagion.py |
Threshold contagion through groups | |
|
plot_37_learning.py |
Semi-supervised learning and hyperedge prediction |
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 | |
|
plot_39_comparing_systems.py |
Comparing two versions of a production system |