Open skrat opened 4 years ago
A component is a subgraph, whereas the connected-components returns vector of vectors without any connectivity data. It also does not preserve order even in simple cases such as this one:
connected-components
(alg/connected-components (graph/graph {\a #{\b} \b #{\c} \c #{\d} \d #{\a}})) => [[\a \b \d \c]]
I'm not sure how is this function useful.
A component is a subgraph, whereas the
connected-components
returns vector of vectors without any connectivity data. It also does not preserve order even in simple cases such as this one:I'm not sure how is this function useful.