Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ has_path
Method
has_path
src/graph/util/paths.rs:40–42 ·
view source on GitHub ↗
(&self, v: usize)
Source
from the content-addressed store, hash-verified
38
39
impl Paths for DepthFirstPaths {
40
fn has_path(&self, v: usize) -> bool {
41
self.marked[v]
42
}
43
44
fn path_to(&self, v: usize) -> Option<LinkedList<usize>> {
45
if self.has_path(v) {
Callers
1
path_to
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected