Skip to content

Commit

Permalink
Make zero function not mandatory for AbstractGraph interface (JuliaGr…
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschoelly authored Feb 9, 2022
1 parent c11e60b commit 3628517
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/src/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ within the Graphs package should just work:
should be implemented with **both** of the following signatures:
- `is_directed(::Type{CustomGraph})::Bool` (example: `is_directed(::Type{<:CustomGraph}) = false`)
- `is_directed(g::CustomGraph)::Bool`
- [`zero`](@ref)

If the graph structure is designed to represent weights on edges, the [`weights`](@ref) function should also be defined.
Note that the output does not necessarily have to be a dense matrix, but it must be a subtype of `AbstractMatrix{<:Real}` and indexable via `[u, v]`.
Expand Down

0 comments on commit 3628517

Please sign in to comment.