Description Usage Arguments Details Value See Also Examples
get.lineage returns either the list of nodes that the provided node depends on (backward lineage) or the list of nodes that depend on the provided node (forward lineage).
1 | get.lineage(adj.graph, node.id, forward = FALSE)
|
adj.graph |
An adjacency graph to get the lineage from, or a ProvGraphInfo object. The object can be created by a call to create.graph. |
node.id |
The string id for a node that the lineage is being requested for |
forward |
Logical that states whether the search is going forward through the graph from the provided node, or backwards. |
Most commonly, the node passed in is a data node representing either a variable, a file, or a plot. Forward lineage reports everything computed from that variable or file. Backward lineage reports everything that contributed to the variable's value, the contents of an output file or plot.
get.lineage returns the forward or backward lineage of the specified node. The lineage is represented as a vector of strings, with each string being the id of a node in the lineage. The first entry in the returned vector is the node.id passed in. The remaining entries form a path either forward or backward through the adjacency graph.
1 2 | adj.graph <- create.graph(system.file("testdata", "basic.json", package = "provGraphR"))
get.lineage (adj.graph, "d24")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.