getrelatives (biograph)
(Removed) Find relatives of a node in biograph object
The function has been removed. Use neighbors
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
=
getrelatives(BiographNode
)
Nodes
=
getrelatives(BiographNode,NumGenerations
)
Arguments
| Node in a biograph object. |
| Number of generations. Enter a positive integer. |
Description
finds all the direct relatives for a given node (Nodes
=
getrelatives(BiographNode
)BiographNode
).
finds the direct relatives for a given node (Nodes
=
getrelatives(BiographNode,NumGenerations
)BiographNode
) up to
a specified number of generations (NumGenerations
). If the
NumGenerations
is 0
, the function returns
the node itself.