Show / Hide Table of Contents

Class GraphWeighted

Static helpers for IGraphWeighted<T, TWeight>.

Inheritance
System.Object
GraphWeighted
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public static class GraphWeighted : object

Methods

| Improve this Doc View Source

Add<T, TWeight>(IGraphWeighted<T, TWeight>, T, T, TWeight)

Adds an edge to a weighted graph

Declaration
public static void Add<T, TWeight>(this IGraphWeighted<T, TWeight> graph, T start, T end, TWeight weight)
Parameters
Type Name Description
IGraphWeighted<T, TWeight> graph

The data structure to add the value to.

T start

The starting point of the edge.

T end

The ending point of the edge.

TWeight weight

The weight of the edge.

Type Parameters
Name Description
T

The generic node type of this graph.

TWeight

The generic weight type of this graph.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX