Represents a node in a graph. A node is a fundamental unit of a graph structure, containing associated data and coordinates to describe its position in the graph.

interface Node {
    id: string;
    user: User;
    x: number;
    y: number;
}

Properties

Properties

id: string

The unique identifier of the node. This ID is used to distinguish the node from others within the graph.

user: User

The user associated with the node. This property links the node to a specific user entity.

x: number

The x-coordinate of the node in the graph. This represents the horizontal position of the node.

y: number

The y-coordinate of the node in the graph. This represents the vertical position of the node.