jluttine / tikz-bayesnet

TikZ library for drawing Bayesian networks, graphical models and (directed) factor graphs in LaTeX.
MIT License
829 stars 147 forks source link

How to add looped edge? #14

Open RylanSchaeffer opened 4 years ago

RylanSchaeffer commented 4 years ago

I would like to have an edge that loops from one node to itself to show a temporal dependence. Using \edge {b_t} {b_t} ; does not work. Is there a workaround?

fcostin commented 3 years ago

i am unsure if there is a correct way to declare a self-loop edge with tikz-bayesnet, but it is possible to add one via \path:

see https://tex.stackexchange.com/questions/35423/changing-loop-size-and-shape-in-tikz