I am once again looking at pages of notes I wrote ...
# thinking-together
j
I am once again looking at pages of notes I wrote three years ago attempting to find a way to declaratively diagram concurrent legal processes so as to illuminate the steps available to the parties as the process unfolds. I feel like I have something worth exploring, but to illustrate it I need a diagramming language that allows me to nest nodes inside of one another, and draw edges that originate and terminate at arbitrary depths of nodes. DOT won't let you draw an arrow starting at the edge of a subgraph, and doesn't have any way of nesting actual nodes, for example. Is anyone aware of a text-based graphing language that will let me nest objects and draw edges between arbitrary depths?
šŸ”„ 1
d
I believe that fits the statecharts model If it does, you can draw it with stately.ai
j
Actually, I found a hack! Use subgraphs in DOT, and give each subgraph an invisible node for edges that originate at or target the subgraph. Ugly, but legible, and good enough for my purposes.
šŸ‘ 1
c
Seems like you figured it out! As a side note that may interest you, I’m working for a little language for the higraph formalism (which stands for hierarchical graphs and is the basis for statecharts, same creator). Not much to show yet, but it sounds like its sort of what your looking for Original paper here: https://dl.acm.org/doi/pdf/10.1145/42411.42414
j
From the paper, it seems that mine is a very similar visual syntax (just with additional labelling of the blobs, and no Cartesian product), and a different semantics. If your language is open, I would love to take a look.I'm also curious if you have seen any examples of higraphs used to express higher-order logical statements.
My visual syntax also excludes overlapping bounds.
j
Have you tried mermaid? I've used that to connect nodes to subgraphs and vice versa.
šŸ‘€ 1