add_child {orbweaver}R Documentation

Add Child

Description

Adds a child to a node. If the child already exists, nothing happens.

If the parent or the child do not exist, they are created.

Note: This function modifies the graph in place. It does not return a new graph. This is done for performance and memory reasons. It works in a similar way to the data.table package.

Usage

add_child(graph, parent, child)

Arguments

graph

The graph to add the child to.

parent

The ID of the parent node.

child

The ID of the child node.

Value

A reference to the graph passed in.


[Package orbweaver version 0.0.3 Index]