- connect(graph, options): Graph
Parameters
- graph: Readonly<{
edges: readonly Readonly<{
a: string;
b: string;
weight?: number;
}>[];
vertices: IMapImmutable<string, Readonly<{
id: string;
}>>;
}> - options: Readonly<{
a: string;
b: string | string[];
weight?: number;
}>
Makes a connection between
options.a
and one or more nodes inoptions.b
. Same as connectWithEdges but only the Graph is returned.