Type alias Edge

Edge: {
    type: EdgeType;
    x1: number;
    x2: number;
    y1: number;
    y2: number;
}

An edge connecting two vertices of a 2D graph.

Type declaration

  • type: EdgeType

    Type of connection.

  • x1: number

    First horizontal coordinate.

  • x2: number

    Second horizontal coordinate.

  • y1: number

    First vertical coordinate.

  • y2: number

    Second vertical coordinate.