VisNode
A node prepared for visualization.
Usage
VisNode(
id,
label,
node_type,
color="#4A90D9",
size=20,
metadata=dict(),
)Parameters
id: str-
Node identifier.
label: str-
Display label.
node_type: str-
Node type string.
color: str = "#4A90D9"-
CSS color for the node.
size: int = 20-
Relative node size.
metadata: dict[str, Any] = dict()- Extra display metadata.
Examples
import talk_box as tb
vn = tb.VisNode(id="e1", label="Python", node_type="entity", color="#50C878", size=20)
vn.label # "Python"