@@ -87,7 +87,7 @@ mutable struct BipartiteGraph{T <: Integer}
87
87
ne:: Int
88
88
""" Forward adjacency list mapping index of source vertices to the vertices they depend on."""
89
89
fadjlist:: Vector{Vector{T}} # fadjlist[src] = [dest1,dest2,...]
90
- """ Backwrad adjacency list mapping index of vertices that are dependencies to the source vertices that depend on them."""
90
+ """ Backward adjacency list mapping index of vertices that are dependencies to the source vertices that depend on them."""
91
91
badjlist:: Vector{Vector{T}} # badjlist[dst] = [src1,src2,...]
92
92
end
93
93
@@ -114,8 +114,8 @@ Convert a collection of equation dependencies, for example as returned by
114
114
`equation_dependencies`, to a [`BipartiteGraph`](@ref).
115
115
116
116
Notes:
117
- - `vtois` should provide `Dict` like mapping from variable dependency in `eqdeps`
118
- to the integer idx of the variable to use in the graph.
117
+ - `vtois` should provide a `Dict` like mapping from each `Variable` dependency in
118
+ `eqdeps` to the integer idx of the variable to use in the graph.
119
119
120
120
Example:
121
121
Continuing the example started in [`equation_dependencies`](@ref)
@@ -147,8 +147,8 @@ asgraph(sys::AbstractSystem; variables=states(sys),
147
147
variablestoids=Dict(convert(Variable, v) => i for (i,v) in enumerate(variables)))
148
148
```
149
149
150
- Convert an `AbstractSystem` to a [`BipartiteGraph`](@ref) mapping equations
151
- to variables they depend on.
150
+ Convert an `AbstractSystem` to a [`BipartiteGraph`](@ref) mapping the index of equations
151
+ to the indices of variables they depend on.
152
152
153
153
Notes:
154
154
- Defaults for kwargs creating a mapping from `equations(sys)` to `states(sys)`
@@ -178,9 +178,9 @@ For each variable determine the equations that modify it and return as a [`Bipar
178
178
179
179
Notes:
180
180
- Dependencies are returned as a [`BipartiteGraph`](@ref) mapping variable
181
- indices to the indices of equations that map to them.
181
+ indices to the indices of equations that modify them.
182
182
- `variables` denotes the list of variables to determine dependencies for.
183
- - `variablestoids` denotes a `Dict` mapping `Variable`s to `Int`s .
183
+ - `variablestoids` denotes a `Dict` mapping `Variable`s to their `Int` index in `variables` .
184
184
185
185
Example:
186
186
Continuing the example of [`equation_dependencies`](@ref)
0 commit comments