Edge | R Documentation |

Edge creation for gfpop-R-Package graph

```
Edge(
state1,
state2,
type = "null",
decay = 1,
gap = 0,
penalty = 0,
K = Inf,
a = 0
)
```

`state1` |
a string defining the starting state of the edge |

`state2` |
a string defining the ending state of the edge |

`type` |
a string equal to |

`decay` |
a nonnegative number to give the strength of the exponential decay into the segment |

`gap` |
a nonnegative number to constrain the size of the gap in the change of state |

`penalty` |
a nonnegative number. The penality associated to this state transition |

`K` |
a positive number. Threshold for the Biweight robust loss |

`a` |
a positive number. Slope for the Huber robust loss |

a one-row dataframe with 9 variables

```
Edge("Dw", "Up", "up", gap = 1, penalty = 10, K = 3)
Edge(0, 1, "abs", penalty = 2, gap = 1)
Edge(0, 0, "null", penalty = 0, K = 2, a = 1)
Edge("Dw", "Dw", type = "null", decay = 0.997)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.