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)typetype, the output will be either a new graph or
a vector or a list.type can be:
set
set
set
set
set
set
set
set
set and set2 separated by set3
setnewug,
newdag