node

fun node(init: TreeNodeContext<T>.() -> Unit)


fun node(name: String, attributes: List<T> = emptyList(), init: TreeNodeContext<T>.() -> Unit = {})

Add a new child node to the root. Supports nested nodes.