We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f865336 commit ff15dcbCopy full SHA for ff15dcb
1 file changed
python/pycubool/gviz.py
@@ -10,8 +10,7 @@ def matrix_data_to_gviz(shape, rows, cols, **kwargs):
10
label = "" if _label is None else _label
11
base_vertex = 0 if _base_vertex is None else _base_vertex
12
13
- n = shape[0]
14
- m = shape[1]
+ n = max(shape[0], shape[1])
15
16
if not (graph_name is None):
17
result += f'graph [label={graph_name}];\n'
0 commit comments