Table of Contents

Interface IEdgeWeightedGraph<TWeight>

Namespace
AlgorithmsSW.EdgeWeightedGraph
Assembly
AlgorithmsSW.dll

Represents a weighted graph data structure.

public interface IEdgeWeightedGraph<TWeight> : IReadOnlyEdgeWeightedGraph<TWeight>, IReadOnlyGraph, IEnumerable<(int vertex0, int vertex1)>, IEnumerable

Type Parameters

TWeight

The type of the edge weights.

Inherited Members
Extension Methods

Methods

AddEdge(Edge<TWeight>)

Adds an edge to the graph.

void AddEdge(Edge<TWeight> edge)

Parameters

edge Edge<TWeight>

The edge to add.

RemoveEdge(Edge<TWeight>)

Removes an edge from the graph.

bool RemoveEdge(Edge<TWeight> edge)

Parameters

edge Edge<TWeight>

The edge to remove.

Returns

bool