- distanceDefault(graph, edge): number
Parameters
- graph: Readonly<{
vertices: IMapImmutable<string, Readonly<{
id: string;
out: readonly Readonly<{
id: string;
weight?: number;
}>[];
}>>;
}> - edge: Readonly<{
id: string;
weight?: number;
}>
Returns number
Default distance computer. Uses
weight
property of edge, or1
if not found.