R/CheckVerticeType.R

Defines functions CheckVerticeType

Documented in CheckVerticeType

CheckVerticeType <-
function(Vertice){
  # cheak a node, or a vertice whether is a real vertice or a virtual one.
  #
  # input
  #    Vertice: a vertice in the network, namely, the graph
  # output
  #    Whether: Yes or No a real vertice
  #
  # Junliang Shang
  # 3.31/2014
  
  Whether <- TRUE
  Num <- nchar(Vertice)
  for (i in 1:Num){
    if (length(grep(":",substr(Vertice,i,i))==1)){
      Whether <- FALSE
      break
    }
  }
  
  list(Whether=Whether)
}

Try the CINOEDV package in your browser

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

CINOEDV documentation built on May 29, 2017, 9:07 p.m.