Main Content

getdescendants (biograph)

(Removed) Find descendants of a node in biograph object

The function has been removed. Use successors instead. Note that the function does not let you specify NumGenerations. You can use distances to find the distances from all nodes to the target node after setting the edge weight to 1, and filter the nodes by distance to the appropriate depth.

Syntax

Nodes = getdescendants(BiographNode)
Nodes = getdescendants(BiographNode,NumGenerations)

Arguments

BiographNode

Node in a biograph object.

NumGenerations

Number of generations. Enter a positive integer.

Description

Nodes = getdescendants(BiographNode) finds a given node (BiographNode) all of its direct descendants.

Nodes = getdescendants(BiographNode,NumGenerations) finds the node (BiographNode) and all of its direct descendants up to a specified number of generations (NumGenerations). If the NumGenerations is 0, the function returns the node itself.

Version History

Introduced before R2006a

expand all