Namespace Graph1x.Edges
Structs
- Edge<TVertex>
An unweighted edge between two vertices, with value equality over the (source, target) pair.
- WeightedEdge<TVertex, TWeight>
A weighted edge between two vertices, with value equality over the (source, target, weight) triple.
Interfaces
- IEdge<TVertex>
An edge connecting two vertices. Edge values are ordered pairs; undirected semantics (where a-b and b-a denote the same connection) are applied by the graph that stores the edge, not by the edge itself.
- IWeightedEdge<TVertex, TWeight>
An edge carrying a numeric weight. Any INumber<TSelf> works as the weight type (int, double, decimal, ...), so algorithms can compute over weights via generic math without boxing or conversions.