Interface IReadOnlyEdgeWeightedGraph<TWeight>
- Namespace
- AlgorithmsSW.EdgeWeightedGraph
- Assembly
- AlgorithmsSW.dll
Represents a read-only weighted graph data structure.
public interface IReadOnlyEdgeWeightedGraph<TWeight> : IReadOnlyGraph, IEnumerable<(int vertex0, int vertex1)>, IEnumerable
Type Parameters
TWeight
The type of the edge weights.
- Inherited Members
- Extension Methods
Properties
WeightedEdges
Gets the edges that is part of this IReadOnlyEdgeWeightedGraph<TWeight>.
IEnumerable<Edge<TWeight>> WeightedEdges { get; }
Property Value
- IEnumerable<Edge<TWeight>>
Methods
GetIncidentEdges(int)
Gets the edges that is incident to the given vertex.
IEnumerable<Edge<TWeight>> GetIncidentEdges(int vertex)
Parameters
vertex
intThe vertex to get the incident edges of.
Returns
- IEnumerable<Edge<TWeight>>