Add a new edge to a visNetwork edge dataframe

add_edge(
  edgedf,
  id,
  label,
  to,
  from,
  type,
  parameter,
  penalty,
  K = Inf,
  a = 0,
  min = NA,
  max = NA,
  selfReference.angle = NA,
  selfReference.size = 40,
  hidden = FALSE,
  color = "black"
)

Arguments

edgedf

a dataframe containing the edges.

id

edge id

label

edge label

to

Where does the edge go to?

from

Where does the edge come from?

type

What type of edge?

parameter

parameter: gap, etc.

penalty

edge penalty

K

K (see gfpop)

a

a (see gfpop)

min

min (see gfpop)

max

max (see gfpop)

selfReference.angle

The angle of this edge, if it's recursive

selfReference.size

The length of this edge, if it's recursive

hidden

Is this edge hidden?

color

edge color

Value

a dataframe with one more row than edgedf