Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dissiml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guyslain Naves
Dissiml
Commits
097f297f
Commit
097f297f
authored
1 year ago
by
Guyslain Naves
Browse files
Options
Downloads
Patches
Plain Diff
ajout dans l'algo de copoint d'un test de compatibilité en fin d'algo
parent
3bcf601e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/copoint/imperativeCCNP.ml
+3
-1
3 additions, 1 deletion
lib/copoint/imperativeCCNP.ml
lib/copoint/robinsonCCNP.ml
+3
-1
3 additions, 1 deletion
lib/copoint/robinsonCCNP.ml
with
6 additions
and
2 deletions
lib/copoint/imperativeCCNP.ml
+
3
−
1
View file @
097f297f
...
@@ -160,6 +160,8 @@ let find_compatible_order (type elt) diss =
...
@@ -160,6 +160,8 @@ let find_compatible_order (type elt) diss =
let
module
D
=
struct
type
t
=
elt
let
d
=
diss
.
d
end
in
let
module
D
=
struct
type
t
=
elt
let
d
=
diss
.
d
end
in
let
module
M
=
Make
(
D
)
in
let
module
M
=
Make
(
D
)
in
try
try
Some
(
M
.
find_compatible_order
(
Array
.
of_list
diss
.
elements
))
let
order
=
M
.
find_compatible_order
(
Array
.
of_list
diss
.
elements
)
in
if
Dissimilarity
.
is_compatible_order
diss
(
Array
.
to_list
order
)
then
Some
order
else
None
with
with
|
M
.
Not_Robinson
->
None
|
M
.
Not_Robinson
->
None
This diff is collapsed.
Click to expand it.
lib/copoint/robinsonCCNP.ml
+
3
−
1
View file @
097f297f
...
@@ -175,6 +175,8 @@ let find_compatible_order (type elt) diss =
...
@@ -175,6 +175,8 @@ let find_compatible_order (type elt) diss =
in
in
let
module
M
=
Make
(
D
)
in
let
module
M
=
Make
(
D
)
in
try
try
Some
(
M
.
find_compatible_order
diss
.
elements
)
let
order
=
M
.
find_compatible_order
diss
.
elements
in
if
Dissimilarity
.
is_compatible_order
diss
order
then
Some
order
else
None
with
with
|
M
.
Not_Robinson
->
None
|
M
.
Not_Robinson
->
None
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment