ConnectOptions: Readonly<{
    bidi?: boolean;
    from: string;
    to: string | string[];
    weight?: number;
}>

Options for connecting vertices

Type declaration

  • Optionalbidi?: boolean

    If true, edges in opposite direction are made as well

  • from: string

    From, or source of connection

  • to: string | string[]

    To, or destination of connection. Can be multiple vertices for quick use

  • Optionalweight?: number

    Weight for this connection (optional)