MCPcopy Index your code
hub / github.com/TheAlgorithms/Rust / prim_with_start

Function prim_with_start

src/graph/prim.rs:24–58  ·  view source on GitHub ↗

only works for a connected graph if the given graph is not connected it will return the MST of the connected subgraph

(
    graph: &Graph<V, E>,
    start: V,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

primFunction · 0.85

Calls 4

pushMethod · 0.80
add_edgeFunction · 0.70
insertMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected