Closed stevegolton closed 1 year ago
Added false as an optional return value from Graph.topsort/1. Fixes dialyzer issues which arise when using the function.
false
Graph.topsort/1
E.g. The following code snippet:
case Graph.sort(g) do false -> ... verts -> ... end
Generates the following dialyzer error:
file.ex:line:pattern_match The pattern can never match the type. Pattern: false Type: [any()]
Added
false
as an optional return value fromGraph.topsort/1
. Fixes dialyzer issues which arise when using the function.E.g. The following code snippet:
Generates the following dialyzer error: