Connect from -> to. Same as connectWithEdges, but this version just returns the graph.
By default unidirectional, meaning a connection is made only from->to. Use bidi option to set a bidirection connection, adding also to->from.
Returns a result of { graph, edges }, where graph is the new DirectedGraph and edges
is an array of Edges. One for unidirectional, or two for bidirectional.
Connect from -> to. Same as connectWithEdges, but this version just returns the graph.
By default unidirectional, meaning a connection is made only from->to. Use
bidi
option to set a bidirection connection, adding also to->from.Returns a result of
{ graph, edges }
, wheregraph
is the new DirectedGraph andedges
is an array of Edges. One for unidirectional, or two for bidirectional.