Skip to contents

One node (vertex) in a network. The R analog of the GraphNode TypeScript interface in rtemislive (~/Code/live/src/lib/types.ts).

Usage

GraphNode(id = character(0), label = NULL, value = NULL, group = NULL)

Arguments

id

Character: Unique node identifier. Edges reference nodes by this id.

label

Optional Character: Display label. Defaults to id in the renderer when absent.

value

Optional Numeric: Drives node size when scale_by_degree is enabled (e.g. weighted degree).

group

Optional Character: Categorical key for node color.

Value

GraphNode object.

Examples

GraphNode(id = "a", label = "Node A", group = "g1")
#> <rtemis.draw::GraphNode>
#>  @ id   : chr "a"
#>  @ label: chr "Node A"
#>  @ value: NULL
#>  @ group: chr "g1"