- graph(...initialConnections): Readonly<{
edges: readonly Readonly<{
a: string;
b: string;
weight?: number;
}>[];
vertices: IMapImmutable<string, Readonly<{
id: string;
}>>;
}> Parameters
Rest
...initialConnections: Readonly<{
a: string;
b: string | string[];
weight?: number;
}>[]
Returns Readonly<{
edges: readonly Readonly<{
a: string;
b: string;
weight?: number;
}>[];
vertices: IMapImmutable<string, Readonly<{
id: string;
}>>;
}>