AreNamesUnique: Test whether all node names are unique.

View source: R/node_methods.R

AreNamesUniqueR Documentation

Test whether all node names are unique.

Description

This can be useful for some conversions.

Usage

AreNamesUnique(node)

Arguments

node

The root Node of the data.tree structure to test

Value

TRUE if all Node$name == TRUE for all nodes in the tree

See Also

as.igraph.Node

Examples

data(acme)
AreNamesUnique(acme)
acme$name <- "IT"
AreNamesUnique(acme)


data.tree documentation built on Nov. 13, 2023, 1:08 a.m.