VisEdge
An edge prepared for visualization.
Usage
VisEdge(
source,
target,
label,
weight=1.0,
color="#888888",
)Parameters
source: str-
Source node ID.
target: str-
Target node ID.
label: str-
Edge label (relation).
weight: float = 1.0-
Edge weight (affects thickness).
color: str = "#888888"- CSS color for the edge.
Examples
import talk_box as tb
ve = tb.VisEdge(source="doc-1", target="e1", label="mentions", weight=0.9)
ve.label # "mentions"