Show / Hide Table of Contents

Class GraphEdge<TValue>

A generic graph edge. For sample use-cases DFS, BFS, Dijkstra.

Inheritance
System.Object
GraphEdge<TValue>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AlgorithmsAndDataStructures.Algorithms.GraphTraversal
Assembly: AlgorithmsAndDataStructures.dll
Syntax
public class GraphEdge<TValue>
Type Parameters
Name Description
TValue

Constructors

| Improve this Doc View Source

GraphEdge(GraphNode<TValue>, Int32)

Constructor

Declaration
public GraphEdge(GraphNode<TValue> node, int weight)
Parameters
Type Name Description
GraphNode<TValue> node

The node at the end of this edge.

System.Int32 weight

Weight of this edge.

Properties

| Improve this Doc View Source

Node

Declaration
public GraphNode<TValue> Node { get; set; }
Property Value
Type Description
GraphNode<TValue>

GraphNode at the other end of this edge.

| Improve this Doc View Source

Weight

Declaration
public int Weight { get; set; }
Property Value
Type Description
System.Int32

Weight of this edge. Used in Dijkstra.

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