Substitute Epsilon with a given value.
Arguments
- graph
A graph of class
graphMCP
or classentangledMCP
.- eps
A numeric scalar specifying a value for epsilon edges.
Author
Kornelius Rohmeyer rohmeyer@small-projects.de
Examples
graph <- improvedParallelGatekeeping()
graph
#> A graphMCP graph
#> H1 (weight=0.5)
#> H2 (weight=0.5)
#> H3 (weight=0)
#> H4 (weight=0)
#> Edges:
#> H1 -( 0.5 )-> H3
#> H1 -( 0.5 )-> H4
#> H2 -( 0.5 )-> H3
#> H2 -( 0.5 )-> H4
#> H3 -( \epsilon )-> H1
#> H3 -( 1-\epsilon )-> H4
#> H4 -( \epsilon )-> H2
#> H4 -( 1-\epsilon )-> H3
#>
substituteEps(graph, eps=0.01)
#> A graphMCP graph
#> H1 (weight=0.5)
#> H2 (weight=0.5)
#> H3 (weight=0)
#> H4 (weight=0)
#> Edges:
#> H1 -( 0.5 )-> H3
#> H1 -( 0.5 )-> H4
#> H2 -( 0.5 )-> H3
#> H2 -( 0.5 )-> H4
#> H3 -( 0.01 )-> H1
#> H3 -( 0.99 )-> H4
#> H4 -( 0.01 )-> H2
#> H4 -( 0.99 )-> H3
#>