@@ -405,30 +405,31 @@ function SystemStructurePrintMatrix(s::SystemStructure)
405
405
complete (s. eq_to_diff),
406
406
nothing )
407
407
end
408
- Base. size (bgpm:: SystemStructurePrintMatrix ) = (max (nsrcs (bgpm. bpg), ndsts (bgpm. bpg)) + 1 , 7 )
409
- function compute_diff_label (diff_graph, i)
408
+ Base. size (bgpm:: SystemStructurePrintMatrix ) = (max (nsrcs (bgpm. bpg), ndsts (bgpm. bpg)) + 1 , 9 )
409
+ function compute_diff_label (diff_graph, i, symbol )
410
410
di = i - 1 <= length (diff_graph) ? diff_graph[i - 1 ] : nothing
411
- ii = i - 1 <= length (invview (diff_graph)) ? invview (diff_graph)[i - 1 ] : nothing
412
- return Label (string (di === nothing ? " " : string (di, ' ↑' ),
413
- di != = nothing && ii != = nothing ? " " : " " ,
414
- ii === nothing ? " " : string (ii, ' ↓' )))
411
+ return di === nothing ? Label (" " ) : Label (string (di, symbol))
415
412
end
416
413
function Base. getindex (bgpm:: SystemStructurePrintMatrix , i:: Integer , j:: Integer )
417
414
checkbounds (bgpm, i, j)
418
415
if i <= 1
419
- return (Label .((" #" , " ∂ₜ" , " eq" , " " , " #" , " ∂ₜ" , " v" )))[j]
420
- elseif j == 4
416
+ return (Label .((" #" , " ∂ₜ" , " " , " eq" , " " , " #" , " ∂ₜ" , " " , " v" )))[j]
417
+ elseif j == 5
421
418
colors = Base. text_colors
422
419
return Label (" |" , :light_black )
423
420
elseif j == 2
424
- return compute_diff_label (bgpm. eq_to_diff, i)
425
- elseif j == 6
426
- return compute_diff_label (bgpm. var_to_diff, i)
421
+ return compute_diff_label (bgpm. eq_to_diff, i, ' ↑' )
422
+ elseif j == 3
423
+ return compute_diff_label (invview (bgpm. eq_to_diff), i, ' ↓' )
424
+ elseif j == 7
425
+ return compute_diff_label (bgpm. var_to_diff, i, ' ↑' )
426
+ elseif j == 8
427
+ return compute_diff_label (invview (bgpm. var_to_diff), i, ' ↓' )
427
428
elseif j == 1
428
429
return Label ((i - 1 <= length (bgpm. eq_to_diff)) ? string (i - 1 ) : " " )
429
- elseif j == 5
430
+ elseif j == 6
430
431
return Label ((i - 1 <= length (bgpm. var_to_diff)) ? string (i - 1 ) : " " )
431
- elseif j == 3
432
+ elseif j == 4
432
433
return BipartiteAdjacencyList (i - 1 <= nsrcs (bgpm. bpg) ?
433
434
𝑠neighbors (bgpm. bpg, i - 1 ) : nothing ,
434
435
bgpm. highlight_graph != = nothing &&
@@ -438,7 +439,7 @@ function Base.getindex(bgpm::SystemStructurePrintMatrix, i::Integer, j::Integer)
438
439
bgpm. var_eq_matching != = nothing &&
439
440
(i - 1 <= length (invview (bgpm. var_eq_matching))) ?
440
441
invview (bgpm. var_eq_matching)[i - 1 ] : unassigned)
441
- elseif j == 7
442
+ elseif j == 9
442
443
match = unassigned
443
444
if bgpm. var_eq_matching != = nothing && i - 1 <= length (bgpm. var_eq_matching)
444
445
match = bgpm. var_eq_matching[i - 1 ]
0 commit comments