Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
sasa
Commits
336a1a4d
Commit
336a1a4d
authored
5 years ago
by
Nathan Rébiscoul
Browse files
Options
Downloads
Patches
Plain Diff
Add comment for udg_linear
parent
9bb45f3e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!9
Update "Generate random graphs"
,
!5
WIP: Resolve "Generate random graphs"
Pipeline
#26701
failed
5 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/graphgen/graphGen_arg.ml
+9
-1
9 additions, 1 deletion
tools/graphgen/graphGen_arg.ml
with
9 additions
and
1 deletion
tools/graphgen/graphGen_arg.ml
+
9
−
1
View file @
336a1a4d
...
@@ -257,8 +257,16 @@ let (mkoptab : string array -> t -> unit) =
...
@@ -257,8 +257,16 @@ let (mkoptab : string array -> t -> unit) =
mkopt
args
[
"--progressive-prob"
;
"-pp"
]
mkopt
args
[
"--progressive-prob"
;
"-pp"
]
(
Arg
.
Unit
(
fun
()
->
args
.
udg
.
proba
<-
LinearP
))
(
Arg
.
Unit
(
fun
()
->
args
.
udg
.
proba
<-
LinearP
))
[([
"..."
;
"..."
;
"...
\n
"
]
,
"UDG"
)];
[([
"Uses a probability function for UDG that change probabilty according to the distance from the center,"
;
"using a linear function. Lower the distance is, greater the probability is."
;
"This probability function will be used to know if an edge will be created when"
;
"two Unit Discs touch each other.
\n
"
]
,
"UDG"
)];
(** [linear_proba r] gives a function that, for an input d (distance) outputs d/r.
If r is the Unit Disc radius and d the distance between two points,
it outputs a probability that is higher for a low d and lower for a high d. *)
mkopt
args
[
"--dot_udg"
;
"-du"
]
~
arg
:
" <file-base-name>"
mkopt
args
[
"--dot_udg"
;
"-du"
]
~
arg
:
" <file-base-name>"
(
Arg
.
String
(
fun
f
->
match
args
.
action
with
(
Arg
.
String
(
fun
f
->
match
args
.
action
with
|
"UDG"
->
args
.
dotUDG
<-
f
|
"UDG"
->
args
.
dotUDG
<-
f
...
...
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