Node: Create a Node

NodeR Documentation

Create a Node

Description

Create a Node given a unique identifier as either string, NodeId or numeric.

Usage

Node(
  id,
  x = numeric(),
  y = numeric(),
  color = NULL,
  weight = NULL,
  degree = NULL
)

Arguments

id

string, NodeId or numeric: a unique identifier for the node

x

numeric value indicating the x coordinate of the node. Optional.

y

numeric value indicating the y coordinate of the node. Optional.

color

string or numeric that determines the color of the node. Optional.

weight

numeric value associated with the node, such as timestamp or other node-associated data. Optional.

degree

numeric value indicating the degree of the node. This only makes sense in the context of a network, and should not be provided in other contexts like when working w an individual node.


VEuPathDB/plot.data documentation built on Feb. 20, 2025, 6:33 p.m.