Note
Go to the end to download the full example code or to run this example in your browser via Binder.
PAOH: a dynamic hypergraph without clutter#
The Parallel Aggregated Ordered Hypergraph view (Valdivia et al. 2021) draws vertices as rows and hyperedges as vertical segments, grouped by time. Here a sample of synthetic news articles is shown: each article is a hyperedge of themes, and the three periods reveal how the mix of narratives changes.

TemporalHypergraph(name='news themes', n_nodes=24, n_edges=42) ['2021', '2022', '2023']
import matplotlib.pyplot as plt
import hatvis as hv
from hatvis.plotting import plot_paoh
T = hv.datasets.make_news_transactions(n_per_period=14, random_state=0)
print(T, T.times)
# [snippet:paoh]
ax = plot_paoh(T, time="time")
# [/snippet:paoh]
ax.figure.set_size_inches(11, 5.5)
plt.tight_layout()
Total running time of the script: (0 minutes 0.283 seconds)