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

Undirected edges? #2

Closed arbenede closed 11 years ago

arbenede commented 11 years ago

Can tikz-bayesnet handle undirected graphs (no arrows on edges), like Markov Random Fields?

jluttine commented 11 years ago

Yes, it is possible. You can use the command: \edge [opts] {inputs} {outputs} It connects each input to all outputs. If you want to use undirected edges, provide a line style option, for instance: \edge [-] {input1,input2} {output1,output2,output3} I improved the example.tex to be more explicit about this. Did this solve your problem?

arbenede commented 11 years ago

Yes, it solved the problem. Thanks!