# Interface WeightedEdge

Simple weighted undirected edge representation.

interface WeightedEdge {
sourceId: string;
targetId: string;
weight: number;
}

- Defined in utils/graphAlgorithms.ts:23

##### Index

### Properties

sourceId
targetId
weight

## Properties

### sourceId

sourceId: string

Stable identifier of the first endpoint.

- Defined in utils/graphAlgorithms.ts:25

### targetId

targetId: string

Stable identifier of the second endpoint.

- Defined in utils/graphAlgorithms.ts:27

### weight

weight: number

Edge weight in `[0, 1]`.

- Defined in utils/graphAlgorithms.ts:29