Description Usage Arguments Value Author(s) Examples
A leaf of an undirected graph is a node with degree equal to one. A leaf of a directed graph is defined with respect to in-degree or out-degree. The leaves of a directed graph with respect to in-degree (out-degree) are those nodes with in-degree (out-degree) equal to zero.
1  | leaves(object, degree.dir)
 | 
object | 
 A   | 
degree.dir | 
 One of   | 
A character vector giving the node labels of the leaves.
Seth Falcon
1 2 3 4 5 6 7  | data(graphExamples)
graphExamples[[1]]
leaves(graphExamples[[1]])
data(apopGraph)
leaves(apopGraph, "in")
leaves(apopGraph, "out")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.