CODE
= """- [Constructing graphs](https://akshay.bio/variable-expectations/posts/graphs/Neighborhood-graph-construction-techniques.html)
s
- [Calculus on graphs as manifolds](https://akshay.bio/variable-expectations/posts/graphs/Graph-calculus.html)
- [Graph motifs and higher-order structures](https://akshay.bio/variable-expectations/posts/graphs/Graph-motifs.html)
- [Learning from neighbors with harmonic analysis](https://akshay.bio/variable-expectations/posts/graphs/Graph-harmonic.html)
- [Graph sparsification](https://akshay.bio/variable-expectations/posts/graphs/Graph-sparsification.html)
- [Trees and finding hierarchies](https://akshay.bio/variable-expectations/posts/graphs/Hierarchical-clustering.html)
- [Learning with the graph Laplacian and trend filtering](https://akshay.bio/variable-expectations/posts/graphs/Laplacian-regularization.html)
- [Localized graph descriptors](https://akshay.bio/variable-expectations/posts/graphs/Localized-graph-descriptions.html)
- [Stationarity, coherence, and generating signals on graphs](https://akshay.bio/variable-expectations/posts/graphs/Generating-signals-from-kNN.html)
- [Conformal prediction with confidence for chemistry](https://akshay.bio/variable-expectations/posts/neighborhoods/Conformal-metric.html)
- [Modeling distributions on data neighborhoods](https://akshay.bio/variable-expectations/posts/neighborhoods/Neighborhoods-and-distributions.html)
- [Which data are intrinsically hard to classify?](https://akshay.bio/variable-expectations/posts/neighborhoods/Nonparametric-margins.html)
- [Structured correlation coefficients](https://akshay.bio/variable-expectations/posts/statistics/A-new-correlation-coefficient.html)
"""
= "../../files/utils/" + "mermaid_tools.py"
decomp_tools_path
from importlib.machinery import SourceFileLoader
= SourceFileLoader("mermaid_tools", decomp_tools_path).load_module()
mermaid_tools import re, pandas as pd
# pat = re.compile(r'-\s*\[([^\]]+)]\(([^)]+)\)')
= re.compile(r'-\s*\[([^\]]*)\]\(([^)]*)\)') # * instead of + → empty allowed
pat
= [], [], [], []
titles, urls, names, ids for title, url in pat.findall(s):
if title or url: # keep the row if at least one field is non-empty
titles.append(title)
urls.append(url)= url.split("/")[-1].split(".")[0].replace("-", " ")
post_name # Get initial of each word in post_name
= "".join(word[0] for word in post_name.split() if word)
initials
names.append(post_name)
ids.append(initials)
= pd.DataFrame({
node_df "label": titles,
"url": urls,
"name": names,
"id": ids,
"subgraph": ["Construction", "Algorithms", "Structures", "Algorithms", "Algorithms", "Structures", "Algorithms", "Algorithms", "Neighborhoods", "Evaluation", "Neighborhoods", "Neighborhoods", "Evaluation"],
})
# node_df['text_color'] = '#000000'
# node_df['text_style'] = 'bold'
node_df
label | url | name | id | subgraph | |
---|---|---|---|---|---|
0 | Constructing graphs | https://akshay.bio/variable-expectations/posts... | Neighborhood graph construction techniques | Ngct | Construction |
1 | Calculus on graphs as manifolds | https://akshay.bio/variable-expectations/posts... | Graph calculus | Gc | Algorithms |
2 | Graph motifs and higher-order structures | https://akshay.bio/variable-expectations/posts... | Graph motifs | Gm | Structures |
3 | Learning from neighbors with harmonic analysis | https://akshay.bio/variable-expectations/posts... | Graph harmonic | Gh | Algorithms |
4 | Graph sparsification | https://akshay.bio/variable-expectations/posts... | Graph sparsification | Gs | Algorithms |
5 | Trees and finding hierarchies | https://akshay.bio/variable-expectations/posts... | Hierarchical clustering | Hc | Structures |
6 | Learning with the graph Laplacian and trend fi... | https://akshay.bio/variable-expectations/posts... | Laplacian regularization | Lr | Algorithms |
7 | Localized graph descriptors | https://akshay.bio/variable-expectations/posts... | Localized graph descriptions | Lgd | Algorithms |
8 | Stationarity, coherence, and generating signal... | https://akshay.bio/variable-expectations/posts... | Generating signals from kNN | Gsfk | Neighborhoods |
9 | Conformal prediction with confidence for chemi... | https://akshay.bio/variable-expectations/posts... | Conformal metric | Cm | Evaluation |
10 | Modeling distributions on data neighborhoods | https://akshay.bio/variable-expectations/posts... | Neighborhoods and distributions | Nad | Neighborhoods |
11 | Which data are intrinsically hard to classify? | https://akshay.bio/variable-expectations/posts... | Nonparametric margins | Nm | Neighborhoods |
12 | Structured correlation coefficients | https://akshay.bio/variable-expectations/posts... | A new correlation coefficient | Ancc | Evaluation |