Skip to content

Commit d51fb07

Browse files
Remove query shorthands. Fixes #14
1 parent ad31244 commit d51fb07

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

R/queries.R

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,6 @@ parents <- function(cg, nodes = NULL, index = NULL) {
231231
.relations(cg, .expand_nodes(expr, env), NULL, parents_of_ptr)
232232
}
233233

234-
#' @rdname parents
235-
#' @export
236-
pa <- parents
237-
238234
#' @title Get children of nodes in a `caugi_graph`
239235
#'
240236
#' @param cg A `caugi_graph` object.
@@ -260,10 +256,6 @@ children <- function(cg, nodes = NULL, index = NULL) {
260256
.relations(cg, .expand_nodes(expr, env), NULL, children_of_ptr)
261257
}
262258

263-
#' @rdname children
264-
#' @export
265-
ch <- children
266-
267259
#' @title Get neighbors of nodes in a `caugi_graph`
268260
#'
269261
#' @param cg A `caugi_graph` object.
@@ -292,15 +284,6 @@ neighbors <- function(cg, nodes = NULL, index = NULL) {
292284
#' @rdname neighbors
293285
#' @export
294286
neighbours <- neighbors
295-
#' @rdname neighbors
296-
#' @export
297-
nb <- neighbors
298-
#' @rdname neighbors
299-
#' @export
300-
neighborhood <- neighbors
301-
#' @rdname neighbors
302-
#' @export
303-
neighbourhood <- neighbors
304287

305288
#' @title Get ancestors of nodes in a `caugi_graph`
306289
#'
@@ -327,10 +310,6 @@ ancestors <- function(cg, nodes = NULL, index = NULL) {
327310
.relations(cg, .expand_nodes(expr, env), NULL, ancestors_of_ptr)
328311
}
329312

330-
#' @rdname ancestors
331-
#' @export
332-
an <- ancestors
333-
334313
#' @title Get descendants of nodes in a `caugi_graph`
335314
#'
336315
#' @param cg A `caugi_graph` object.
@@ -355,11 +334,6 @@ descendants <- function(cg, nodes = NULL, index = NULL) {
355334
env <- parent.frame()
356335
.relations(cg, .expand_nodes(expr, env), NULL, descendants_of_ptr)
357336
}
358-
359-
#' @rdname descendants
360-
#' @export
361-
de <- descendants
362-
363337
#' @title Get Markov blanket of nodes in a `caugi_graph`
364338
#'
365339
#' @param cg A `caugi_graph` object.
@@ -385,10 +359,6 @@ markov_blanket <- function(cg, nodes = NULL, index = NULL) {
385359
.relations(cg, .expand_nodes(expr, env), NULL, markov_blanket_of_ptr)
386360
}
387361

388-
#' @rdname markov_blanket
389-
#' @export
390-
mb <- markov_blanket
391-
392362
#' @title Get all exogenous nodes in a `caugi_graph`
393363
#'
394364
#' @description Get all exogenous nodes (nodes with no parents) in a
@@ -407,10 +377,6 @@ exogenous <- function(cg, undirected_as_parents = FALSE) {
407377
.getter_output(cg, idx0)
408378
}
409379

410-
#' @rdname exogenous
411-
#' @export
412-
exo <- exogenous
413-
414380
# ──────────────────────────────────────────────────────────────────────────────
415381
# ────────────────────────────── Getter helpers ────────────────────────────────
416382
# ──────────────────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)