R/extendr-wrappers.R

Defines functions is_empty len as_character print build_acyclic build_directed add_path add_edge new get_leaves_as_df as_data_frame find_path_one_to_many find_all_paths length nodes from_bin_mem from_bin_disk to_bin_mem to_bin_disk print subset_multi_with_limit subset_multi get_roots_over get_all_roots get_leaves_under get_all_leaves least_common_parents has_children has_parents parents children find_path get_leaves_as_df as_data_frame find_path_one_to_many find_all_paths length nodes from_bin_mem from_bin_disk to_bin_mem to_bin_disk print subset_multi_with_limit subset_multi get_roots_over get_all_roots get_leaves_under get_all_leaves least_common_parents has_children has_parents parents children find_path rs_populate_edges_builder

Documented in add_edge add_path build_acyclic build_directed children find_all_paths find_path find_path_one_to_many get_all_leaves get_all_roots get_leaves_as_df get_leaves_under get_roots_over has_children has_parents least_common_parents nodes parents

# Generated by extendr: Do not edit by hand

# nolint start

#
# This file was created with the following call:
#   .Call("wrap__make_orbweaver_wrappers", use_symbols = TRUE, package_name = "orbweaver")

#' @usage NULL
#' @useDynLib orbweaver, .registration = TRUE
NULL

rs_populate_edges_builder <- function(graph, parent_iter, child_iter) .Call(wrap__rs_populate_edges_builder, graph, parent_iter, child_iter)

DirectedGraph <- new.env(parent = emptyenv())

DirectedGraph$find_path <- function(from, to) .Call(wrap__DirectedGraph__find_path, self, from, to)

DirectedGraph$children <- function(nodes) .Call(wrap__DirectedGraph__children, self, nodes)

DirectedGraph$parents <- function(nodes) .Call(wrap__DirectedGraph__parents, self, nodes)

DirectedGraph$has_parents <- function(nodes) .Call(wrap__DirectedGraph__has_parents, self, nodes)

DirectedGraph$has_children <- function(nodes) .Call(wrap__DirectedGraph__has_children, self, nodes)

DirectedGraph$least_common_parents <- function(selected) .Call(wrap__DirectedGraph__least_common_parents, self, selected)

DirectedGraph$get_all_leaves <- function() .Call(wrap__DirectedGraph__get_all_leaves, self)

DirectedGraph$get_leaves_under <- function(nodes) .Call(wrap__DirectedGraph__get_leaves_under, self, nodes)

DirectedGraph$get_all_roots <- function() .Call(wrap__DirectedGraph__get_all_roots, self)

DirectedGraph$get_roots_over <- function(node_ids) .Call(wrap__DirectedGraph__get_roots_over, self, node_ids)

DirectedGraph$subset_multi <- function(node_ids) .Call(wrap__DirectedGraph__subset_multi, self, node_ids)

DirectedGraph$subset_multi_with_limit <- function(node_ids, limit) .Call(wrap__DirectedGraph__subset_multi_with_limit, self, node_ids, limit)

DirectedGraph$print <- function() .Call(wrap__DirectedGraph__print, self)

DirectedGraph$to_bin_disk <- function(path) .Call(wrap__DirectedGraph__to_bin_disk, self, path)

DirectedGraph$to_bin_mem <- function() .Call(wrap__DirectedGraph__to_bin_mem, self)

DirectedGraph$from_bin_disk <- function(path) .Call(wrap__DirectedGraph__from_bin_disk, path)

DirectedGraph$from_bin_mem <- function(bin) .Call(wrap__DirectedGraph__from_bin_mem, bin)

DirectedGraph$nodes <- function() .Call(wrap__DirectedGraph__nodes, self)

DirectedGraph$length <- function() .Call(wrap__DirectedGraph__length, self)

DirectedGraph$find_all_paths <- function(from, to) .Call(wrap__DirectedGraph__find_all_paths, self, from, to)

DirectedGraph$find_path_one_to_many <- function(from, to) .Call(wrap__DirectedGraph__find_path_one_to_many, self, from, to)

DirectedGraph$as_data_frame <- function() .Call(wrap__DirectedGraph__as_data_frame, self)

DirectedGraph$get_leaves_as_df <- function(nodes) .Call(wrap__DirectedGraph__get_leaves_as_df, self, nodes)

#' @export
`$.DirectedGraph` <- function (self, name) { func <- DirectedGraph[[name]]; environment(func) <- environment(); func }

#' @export
`[[.DirectedGraph` <- `$.DirectedGraph`

DirectedAcyclicGraph <- new.env(parent = emptyenv())

DirectedAcyclicGraph$find_path <- function(from, to) .Call(wrap__DirectedAcyclicGraph__find_path, self, from, to)

DirectedAcyclicGraph$children <- function(nodes) .Call(wrap__DirectedAcyclicGraph__children, self, nodes)

DirectedAcyclicGraph$parents <- function(nodes) .Call(wrap__DirectedAcyclicGraph__parents, self, nodes)

DirectedAcyclicGraph$has_parents <- function(nodes) .Call(wrap__DirectedAcyclicGraph__has_parents, self, nodes)

DirectedAcyclicGraph$has_children <- function(nodes) .Call(wrap__DirectedAcyclicGraph__has_children, self, nodes)

DirectedAcyclicGraph$least_common_parents <- function(selected) .Call(wrap__DirectedAcyclicGraph__least_common_parents, self, selected)

DirectedAcyclicGraph$get_all_leaves <- function() .Call(wrap__DirectedAcyclicGraph__get_all_leaves, self)

DirectedAcyclicGraph$get_leaves_under <- function(nodes) .Call(wrap__DirectedAcyclicGraph__get_leaves_under, self, nodes)

DirectedAcyclicGraph$get_all_roots <- function() .Call(wrap__DirectedAcyclicGraph__get_all_roots, self)

DirectedAcyclicGraph$get_roots_over <- function(node_ids) .Call(wrap__DirectedAcyclicGraph__get_roots_over, self, node_ids)

DirectedAcyclicGraph$subset_multi <- function(node_ids) .Call(wrap__DirectedAcyclicGraph__subset_multi, self, node_ids)

DirectedAcyclicGraph$subset_multi_with_limit <- function(node_ids, limit) .Call(wrap__DirectedAcyclicGraph__subset_multi_with_limit, self, node_ids, limit)

DirectedAcyclicGraph$print <- function() .Call(wrap__DirectedAcyclicGraph__print, self)

DirectedAcyclicGraph$to_bin_disk <- function(path) .Call(wrap__DirectedAcyclicGraph__to_bin_disk, self, path)

DirectedAcyclicGraph$to_bin_mem <- function() .Call(wrap__DirectedAcyclicGraph__to_bin_mem, self)

DirectedAcyclicGraph$from_bin_disk <- function(path) .Call(wrap__DirectedAcyclicGraph__from_bin_disk, path)

DirectedAcyclicGraph$from_bin_mem <- function(bin) .Call(wrap__DirectedAcyclicGraph__from_bin_mem, bin)

DirectedAcyclicGraph$nodes <- function() .Call(wrap__DirectedAcyclicGraph__nodes, self)

DirectedAcyclicGraph$length <- function() .Call(wrap__DirectedAcyclicGraph__length, self)

DirectedAcyclicGraph$find_all_paths <- function(from, to) .Call(wrap__DirectedAcyclicGraph__find_all_paths, self, from, to)

DirectedAcyclicGraph$find_path_one_to_many <- function(from, to) .Call(wrap__DirectedAcyclicGraph__find_path_one_to_many, self, from, to)

DirectedAcyclicGraph$as_data_frame <- function() .Call(wrap__DirectedAcyclicGraph__as_data_frame, self)

DirectedAcyclicGraph$get_leaves_as_df <- function(nodes) .Call(wrap__DirectedAcyclicGraph__get_leaves_as_df, self, nodes)

#' @export
`$.DirectedAcyclicGraph` <- function (self, name) { func <- DirectedAcyclicGraph[[name]]; environment(func) <- environment(); func }

#' @export
`[[.DirectedAcyclicGraph` <- `$.DirectedAcyclicGraph`

DirectedGraphBuilder <- new.env(parent = emptyenv())

DirectedGraphBuilder$new <- function() .Call(wrap__DirectedGraphBuilder__new)

DirectedGraphBuilder$add_edge <- function(from, to) invisible(.Call(wrap__DirectedGraphBuilder__add_edge, self, from, to))

DirectedGraphBuilder$add_path <- function(path) .Call(wrap__DirectedGraphBuilder__add_path, self, path)

DirectedGraphBuilder$build_directed <- function() .Call(wrap__DirectedGraphBuilder__build_directed, self)

DirectedGraphBuilder$build_acyclic <- function() .Call(wrap__DirectedGraphBuilder__build_acyclic, self)

#' @export
`$.DirectedGraphBuilder` <- function (self, name) { func <- DirectedGraphBuilder[[name]]; environment(func) <- environment(); func }

#' @export
`[[.DirectedGraphBuilder` <- `$.DirectedGraphBuilder`

NodeVec <- new.env(parent = emptyenv())

NodeVec$print <- function() .Call(wrap__NodeVec__print, self)

NodeVec$as_character <- function() .Call(wrap__NodeVec__as_character, self)

NodeVec$len <- function() .Call(wrap__NodeVec__len, self)

NodeVec$is_empty <- function() .Call(wrap__NodeVec__is_empty, self)

#' @export
`$.NodeVec` <- function (self, name) { func <- NodeVec[[name]]; environment(func) <- environment(); func }

#' @export
`[[.NodeVec` <- `$.NodeVec`


# nolint end

Try the orbweaver package in your browser

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

orbweaver documentation built on June 8, 2025, 11:40 a.m.