- class neo4j_viz.Node(*, id, caption=None, caption_align=None, caption_size=None, size=None, color=None, pinned=None, x=None, y=None, properties=<factory>)¶
可视化图中的一个节点。
输入的每个字段都不区分大小写,也接受 camelCase。例如,“CAPTION_ALIGN”、“captionAlign”也是 caption_align 字段的有效输入键。但在构造时,字段名会被转换为 snake_case。
有关每个字段的更多信息,请参阅 NVL 库文档:https://neo4j.ac.cn/docs/nvl/current/base-library/#_nodes
- 参数:
id (str | int)
caption (str | None)
caption_align (CaptionAlignment | None)
caption_size (int | None)
size (int | float | None)
color (Tuple[int, int, int] | Tuple[int, int, int, float] | str | Color | None)
pinned (bool | None)
x (int | float | None)
y (int | float | None)
properties (dict[str, Any])
- caption: str | None¶
节点的标题
- caption_align: CaptionAlignment | None¶
标题文本的对齐方式
- caption_size: int | None¶
标题文本的大小。字体大小与节点半径的比例
- color: ColorType | None¶
节点的颜色。允许的输入例如“#FF0000”、“red”或 (255, 0, 0)
- id: NodeIdType¶
节点的唯一标识符
- pinned: bool | None¶
节点是否固定在可视化中
- properties: dict[str, Any]¶
节点的其他不直接影响可视化的属性
- size: RealNumber | None¶
节点大小,表示为像素半径
- x: RealNumber | None¶
节点的 x 坐标
- y: RealNumber | None¶
节点的 y 坐标