File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 11# Network Models
22
3+ ## Connection
4+
5+ ``` @docs
6+ OperationsResearchModels.Connection
7+ ```
8+
39## Shortest Path
410
511``` @docs
Original file line number Diff line number Diff line change @@ -13,7 +13,25 @@ export leftexpressions
1313export hassameorder
1414
1515
16+ """
17+ Connection
1618
19+ # Description
20+
21+ A structure to hold a directed connection between two nodes in a network.
22+
23+ # Fields
24+ - `from::Int64`: The starting node of the connection.
25+ - `to::Int64`: The ending node of the connection.
26+ - `value::Any`: The value associated with the connection (e.g. distance, time, capacity).
27+
28+ # Example
29+
30+ ```julia
31+ # Create a connection from node 1 to node 2 with a distance of 5 kms.
32+ conn = Connection(1, 2, 5)
33+ ```
34+ """
1735struct Connection
1836 from:: Int64
1937 to:: Int64
You can’t perform that action at this time.
0 commit comments