rrtucci / texnn

Python script that genetates LaTex code that draws a Neural Net as a causal DAG (Bayesian Network). Python wrapper for xy-pic LaTeX package.
MIT License
10 stars 1 forks source link

how do I add undirected edges between two nodes? #2

Closed murphyk closed 5 months ago

murphyk commented 5 months ago

I see the factor graph example in Bayesuvius, but it does not use texnn :( I cannot see any other way to specify the arrowhead to be empty for a given parent node.

murphyk commented 5 months ago

Ahh, I see. Just create a FancyArrow with style_name="undirected". As in this mod to expert_archer.py:

CD = FancyArrow(
    parent_name="C",
    child_name="D",
    script_tuple=("sub", r"\mu"),
#    style_name="photon",
    style_name="undirected"
)