Back

add-edges (clj)

(source)

function

(add-edges g & edges)
Adds edges to graph g. For unweighted graphs, edges take the form [n1 n2]. For weighted graphs, edges take the form [n1 n2 weight] or [n1 n2], the latter defaulting to a weight of 1

Examples