Tree with arrows that are at 180 degrees and 90 degree angles
anirudhtomer opened this issue · comments
Hi, which function are you referring to? There are two functions that are able to export tree to diagram: tree_to_dot
and tree_to_mermaid
.
Thank you for the reply. We are using tree_to_dot
.
Thanks for the clarification, tree_to_dot
utilizes the pydot package / Graphviz module for rendering.
What you're looking for is to feed in an additional attribute into the pydot.Edge
function which can be achieved via tree_to_dot
function with the edge_attr
parameter. However, looking at the pydot Documentation, they don't seem to have any attribute that sets the edge type/style in this manner.
Alternatively, you can explore tree_to_mermaid
function with the parameter line_shape="stepAfter"
to achieve the look you want such as,
![Screenshot 2023-10-02 at 11 41 07 PM](https://private-user-images.githubusercontent.com/29906371/272017870-726d3aed-f764-4ed2-9a08-154e40820350.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUyMTcyMzcsIm5iZiI6MTcxNTIxNjkzNywicGF0aCI6Ii8yOTkwNjM3MS8yNzIwMTc4NzAtNzI2ZDNhZWQtZjc2NC00ZWQyLTlhMDgtMTU0ZTQwODIwMzUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA5VDAxMDg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiNzExMGEyZmQzNGMwYzU1NzE2ZDRkNzVlZmEzODQ5ZWI2MTRlNmE0N2ExYjc4YjMzNzUwOGJiNzM5YjNiMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MOlYN80Ab8nNT1aXODiByNIcpkuZVmgGLjRgqTK_61g)
Photo is captured on the Mermaid live editor.