queryg {gRain} | R Documentation |
queryg
is a general function for querying a graph object,
specifically graphs as created with newug
and newdag
.
queryg(object, type, set = NULL, set2 = NULL, set3 = NULL)
object |
A graph object; i.e. either an unidrected graph (ugsh) or a directed acyclic graph (dagsh) |
type |
Query type, see 'details' below. |
set,set2,set3 |
Possible arguments to a graph query of type type |
The type
can be:
set
set
set
set
set
set
set
set
set
and set2
separated by set3
set
Depending on the type
, the output will be either a new graph or
a vector or a list.
Søren Højsgaard, sorenh@agrsci.dk