Closed d1ssk closed 9 months ago
Thank you for the quick review! I was just wondering how to set the position of nodes in the case of gflow and your suggestion looks great! I will use nx.multipartite_layout()
for visualization of both flow and gflow.
Sure! I'll be happy to discuss if you want.
However in my experience, time to time the nx.multipartite_layout
does behave weirdly in placing the graph nodes which I think we will need to take care of it somehow in the post-processing.
For eg, see
the nodes 7, 28, 21 are unnecessarily pushed out of line.
Thank you for the valuable information! I would like to reproduce this example to consider a countermeasure, could you give me the code that generates this pattern?
Before submitting, please check the following:
pytest
)black -l 120 <filename>
Then, please fill in below:
Context (if applicable):
Description of the change: Implement a
GraphVisualizer
class within visualization.py and add aview_graph()
method to thePattern
class, which invokes methods from theGraphVisualizer
class.Related issue:
47
also see that checks (github actions) pass. If lint check keeps failing, try installing black==22.8.0 as behavior seems to vary across versions.