R/DAGParam-class.R

.DAGParam <- setRefClass("DAGParam",
    fields = list( dag = "graphNEL" ),
    contains = "Streamer",
    methods = list(
      nodes = function() graph::nodes(dag),
      edges = function() graph::edges(dag),
      inEdges = function(node) graph::inEdges(dag)[[node]],
      show = function() {
          cat("class:", class(.self), "\n")
          cat("DAG nodes:", numNodes(dag), "edges:", numEdges(dag),
              "\n")
          cat("verbose:", verbose, "\n")
      }))

Try the Streamer package in your browser

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

Streamer documentation built on Nov. 8, 2020, 5:53 p.m.