Show / Hide Table of Contents

Class WeightedEdge<TVertex>

Edge implementation with a weight.

Inheritance
System.Object
QuikGraph.Edge<TVertex>
WeightedEdge<TVertex>
Implements
QuikGraph.IEdge<TVertex>
Inherited Members
QuikGraph.Edge<TVertex>.ToString()
QuikGraph.Edge<TVertex>.Source
QuikGraph.Edge<TVertex>.Target
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)
Namespace: GraphShape
Assembly: GraphShape.dll
Syntax
[Serializable]
public class WeightedEdge<TVertex> : Edge<TVertex>, IEdge<TVertex>
Type Parameters
Name Description
TVertex

Vertex type.

Constructors

| Improve this Doc View Source

WeightedEdge(TVertex, TVertex)

Initializes a new instance of the WeightedEdge<TVertex> class.

Declaration
public WeightedEdge(TVertex source, TVertex target)
Parameters
Type Name Description
TVertex source

The source vertex.

TVertex target

The target vertex.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

System.ArgumentNullException

target is null.

| Improve this Doc View Source

WeightedEdge(TVertex, TVertex, Double)

Initializes a new instance of the WeightedEdge<TVertex> class.

Declaration
public WeightedEdge(TVertex source, TVertex target, double weight)
Parameters
Type Name Description
TVertex source

The source vertex.

TVertex target

The target vertex.

System.Double weight

Edge weight.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

System.ArgumentNullException

target is null.

Properties

| Improve this Doc View Source

Weight

Edge weight.

Declaration
public double Weight { get; }
Property Value
Type Description
System.Double

Implements

QuikGraph.IEdge<TVertex>

Extension Methods

GraphHelpers.GetDistances<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph, out Double[,])
  • Improve this Doc
  • View Source
In This Article
Back to top GraphShape