Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
verimag
synchrone
sasa
Commits
9996f90c
Commit
9996f90c
authored
Jul 27, 2021
by
erwan
Browse files
fix: raise an error when Algo.diameter is called on a non-connected graph
parent
88a306ec
Pipeline
#72256
passed with stages
in 3 minutes and 29 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
lib/sasacore/register.ml
View file @
9996f90c
(* Time-stamp: <modified the 2
1
/0
4
/2021 (at 1
5:58
) by Erwan Jahier> *)
(* Time-stamp: <modified the 2
7
/0
7
/2021 (at 1
0:36
) by Erwan Jahier> *)
type
'
s
neighbor
=
{
state
:
'
s
;
...
...
@@ -321,6 +321,7 @@ let (links_number : unit -> int) =
let
(
diameter
:
unit
->
int
)
=
fun
()
->
if
not
(
is_connected
()
)
then
failwith
"diameter: the graph is not connected"
;
match
tbls
.
diameter
with
|
Some
x
->
x
|
None
->
...
...
erwan
@jahier
mentioned in issue
#15 (closed)
·
Jul 27, 2021
mentioned in issue
#15 (closed)
mentioned in issue #15
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment