@@ -18,7 +18,7 @@ struct Connection
1818end
1919
2020
21- function nodes (cns:: Array {Connection,1 } ):: Set{Int64}
21+ function nodes (cns:: Vector {Connection} ):: Set{Int64}
2222 s = Set {Int64} ()
2323 for conn in cns
2424 push! (s, conn. from)
@@ -27,7 +27,7 @@ function nodes(cns::Array{Connection,1})::Set{Int64}
2727 return s
2828end
2929
30- function iseveronleft (cns:: Array {Connection,1 } , n:: Int64 ):: Bool
30+ function iseveronleft (cns:: Vector {Connection} , n:: Int64 ):: Bool
3131 for conn in cns
3232 if conn. from == n
3333 return true
@@ -36,7 +36,7 @@ function iseveronleft(cns::Array{Connection,1}, n::Int64)::Bool
3636 return false
3737end
3838
39- function iseveronright (cns:: Array {Connection,1 } , n:: Int64 ):: Bool
39+ function iseveronright (cns:: Vector {Connection} , n:: Int64 ):: Bool
4040 for conn in cns
4141 if conn. to == n
4242 return true
@@ -45,7 +45,7 @@ function iseveronright(cns::Array{Connection,1}, n::Int64)::Bool
4545 return false
4646end
4747
48- function finish (cns:: Array {Connection,1 } ):: Int64
48+ function finish (cns:: Vector {Connection} ):: Int64
4949 nodeset = nodes (cns)
5050 for n in nodeset
5151 if ! iseveronleft (cns, n)
@@ -55,7 +55,7 @@ function finish(cns::Array{Connection,1})::Int64
5555 error (" No finish node found in connection list." )
5656end
5757
58- function start (cns:: Array {Connection,1 } ):: Int64
58+ function start (cns:: Vector {Connection} ):: Int64
5959 nodeset = nodes (cns)
6060 for n in nodeset
6161 if ! iseveronright (cns, n)
0 commit comments