Crate graph_core

Crate graph_core 

Source
Expand description

§graph-core

Core graph abstractions for graph-rs: type-safe node/edge identifiers, the central Graph trait, and two primary representations — AdjacencyList and AdjacencyMatrix.

Structs§

AdjacencyList
A sparse graph representation backed by an adjacency list.
AdjacencyMatrix
A dense graph representation backed by a 2-D adjacency matrix.
Edge
A directed edge from source to target carrying a weight of type W.
EdgeId
A type-safe edge identifier.
GraphBuilder
A fluent builder for constructing graphs from either representation.
NodeId
A type-safe node identifier.

Enums§

GraphError
Errors that can arise from graph operations.

Traits§

Graph
The central graph abstraction that every algorithm in graph-rs operates on.

Type Aliases§

UnweightedEdge
An unweighted directed edge (weight type ()).
WeightedEdge
A weighted directed edge with f64 weights.