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