Skip to content

Commit bbaaef9

Browse files
committed
independent real types for newwork problem
1 parent 7a27490 commit bbaaef9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/network.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ A structure to hold a directed connection between two nodes in a network.
3232
conn = Connection(1, 2, 5)
3333
```
3434
"""
35-
struct Connection
35+
struct Connection{vType<:Real}
3636
from::Int64
3737
to::Int64
38-
value::Real
38+
value::vType
3939
end
4040

4141

0 commit comments

Comments
 (0)