You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked the CHANGELOG and the commit log to find out if the bug was already fixed in the main branch.
I have included in the "Description" section below a traceback from any exceptions related to this bug.
I have included in the "Related issues or possible duplicates" section beloew all related issues and possible duplicate issues (If there are none, check this box anyway).
I have included in the "Environment" section below the name of the operating system and Python version that I was using when I discovered this bug.
I have included in the "Environment" section below the output of pip freeze.
I have included in the "Steps to reproduce" section below a minimally reproducible example.
Description
When drawing a CPDAG with 4 nodes (even 3 nodes) the drawing shows more edges than the edge list displays.
import pywhy_graphs
from pywhy_graphs import CPDAG
from pywhy_graphs.viz import draw
cpdag = CPDAG()
cpdag.add_edge("xy", "x", cpdag.directed_edge_name)
cpdag.add_edge("x", "z", cpdag.directed_edge_name)
cpdag.add_edge("z", "w", cpdag.directed_edge_name) # comment out the edges to see it reproduced with less number of edges.
print(cpdag.edges())
dot_graph = draw(cpdag, name="bug")
dot_graph.render(outfile="cpdag.png", view=True)
The text was updated successfully, but these errors were encountered:
Checklist
main
branch.pip freeze
.Description
When drawing a CPDAG with 4 nodes (even 3 nodes) the drawing shows more edges than the edge list displays.
Python traceback:
Related issues or possible duplicates
Environment
OS: Ubuntu 22.10
Python version: 3.10.7
Output of
pip freeze
:Steps to reproduce
Example source:
The text was updated successfully, but these errors were encountered: