R/charEdgelist.R

Defines functions charEdgelist

charEdgelist <-
function(edgelist, vertexNames) {
  char <- matrix('0', ncol = ncol(edgelist), nrow = nrow(edgelist))

  for (col in 1:ncol(edgelist)){
    for (row in 1:nrow(edgelist)) {
      char[row, col] <- vertexNames[edgelist[row, col]]
    }
  }
  return(char)
}

Try the Blaunet package in your browser

Any scripts or data that you put into this service are public.

Blaunet documentation built on Sept. 27, 2022, 9:05 a.m.