MCPcopy Create free account
hub / github.com/hashintel/hash / empty

Function empty

libs/@local/hashql/core/src/graph/algorithms/tarjan/tests.rs:107–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105/// An empty graph should have no SCCs.
106#[test]
107fn empty() {
108 let graph = TestGraph::new(&[]);
109 let sccs: Sccs = Tarjan::new(&graph).run();
110 assert_eq!(sccs.node_count(), 0);
111}
112
113/// Tests SCC detection on a simple diamond-shaped DAG.
114/// Each node forms its own SCC since there are no cycles.

Callers 15

mod.rsFile · 0.50
absolute_implMethod · 0.50
newMethod · 0.50
namesMethod · 0.50
modulesMethod · 0.50
stable_empty_sliceFunction · 0.50
intern_sliceMethod · 0.50
collect_empty_iteratorFunction · 0.50
joinMethod · 0.50
meetMethod · 0.50
instantiateMethod · 0.50
instantiateMethod · 0.50

Calls 1

runMethod · 0.65

Tested by

no test coverage detected