R/rm.arc.R

Defines functions rm.arc

Documented in rm.arc

rm.arc <-
function(dag, arc)
{ # this conveniently removes an arc;
  # it removes the evaluated paths etc;
  dag$arc<-dag$arc[-arc,];
  dag$arc.type<-dag$arc.type[-arc];
  dag$curve.x<-dag$curve.x[-arc];
  dag$curve.y<-dag$curve.y[-arc];
  dag$pathsN<-NULL;
  dag$paths<-NULL;
  dag$path.status<-NULL;
  dag$searchType <- NULL;
  dag$searchRes <- NULL;
  return(dag);
}

Try the dagR package in your browser

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

dagR documentation built on Oct. 9, 2022, 5:06 p.m.