Docs.rs
god-graph-0.6.0-alpha
god-graph 0.6.0-alpha
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
silverenternal
Dependencies
bitvec ^1.0
normal
optional
blas-src ^0.9
normal
optional
bumpalo ^3.16
normal
optional
bytemuck ^1.14
normal
candle-core ^0.8
normal
optional
crossbeam-queue ^0.3
normal
optional
dashmap ^5.5
normal
optional
dfdx ^0.13
normal
optional
half ^2.3
normal
indexmap ^2.0
normal
optional
nalgebra ^0.33
normal
optional
ndarray ^0.15
normal
optional
openblas-src ^0.10
normal
optional
parking_lot ^0.12
normal
optional
rand ^0.8
normal
rand_distr ^0.4
normal
optional
rayon ^1.10
normal
optional
rustc-hash ^1.1
normal
optional
safetensors ^0.4
normal
optional
serde ^1.0
normal
serde_json ^1.0
normal
smallvec ^1.11
normal
tikv-jemallocator ^0.5
normal
optional
tokenizers ^0.19
normal
optional
wide ^0.7
normal
optional
criterion ^0.5
dev
petgraph ^0.6
dev
proptest ^1.5
dev
rand ^0.8
dev
rand_chacha ^0.3
dev
rand_xorshift ^0.3
dev
tempfile ^3.10
dev
Versions
100%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
diameter
god_
graph
0.6.0-alpha
In god_
graph::
algorithms::
properties
god_graph
::
algorithms
::
properties
Function
diameter
Copy item path
Source
pub fn diameter<T>(graph: &
Graph
<T, impl
Clone
>) ->
usize
Expand description
计算图的直径(最长最短路径)