Skip to content

Commit e765a49

Browse files
committed
New printer
1 parent 6e6cded commit e765a49

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/systems/diffeqs/index_reduction.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,15 @@ print_bigraph(sys, vars, edges) = print_bigraph(stdout, sys, vars, edges)
5555
function print_bigraph(io::IO, sys, vars, edges)
5656
println(io, "Equations:")
5757
foreach(x->println(io, x), [i => sys.eqs[i] for i in 1:length(sys.eqs)])
58-
println(io)
59-
for (i, j) in edges
60-
println(io, "Eq $i has $(vars[j])")
58+
for (i, edge) in enumerate(edges)
59+
println(io, "\nEq $i has:")
60+
print(io, '[')
61+
for e in edge
62+
print(io, "$(vars[e]), ")
63+
end
64+
print(io, ']')
6165
end
66+
return nothing
6267
end
6368

6469

0 commit comments

Comments
 (0)