Function connectWithEdges
- connectWithEdges(graph, options): {
edges: Collections.Graphs.Undirected.Edge[];
graph: 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 connect but graph and edges are returned.