Loading...
Searching...
No Matches
GraphEdge Class Referenceabstract

Class is used for storing graph edge. More...

Inherits Finalizable.

Public Attributes

double get weight
 Edge weight.
 
int get dst
 Destination vertex id GraphVertex.
 
int get src
 Source vertex id GraphVertex.
 
int get weightCoef
 Edge weight coefficient.
 

Detailed Description

Class is used for storing graph edge.

Definition at line 18 of file graph_edge.dart.

Member Data Documentation

◆ dst

int get GraphEdge.dst

Destination vertex id GraphVertex.

Dart code snippet:

// Get destination vertex ID
int dst = edge.getDst();
print('Edge destination ID: $dst');

Definition at line 40 of file graph_edge.dart.

◆ src

int get GraphEdge.src

Source vertex id GraphVertex.

Dart code snippet:

// Get source vertex ID
int src = edge.getSrc();
print('Edge source ID: $src');

Definition at line 50 of file graph_edge.dart.

◆ weight

double get GraphEdge.weight

Edge weight.

Dart code snippet:

// Get edge weight
double weight = edge.getWeight();
print('Edge weight: $weight');

Definition at line 30 of file graph_edge.dart.

◆ weightCoef

int get GraphEdge.weightCoef

Edge weight coefficient.

Dart code snippet:

// Get edge weight coefficient
int weightCoef = edge.getWeightCoef();
print('Edge weight coefficient: $weightCoef');

Definition at line 60 of file graph_edge.dart.


The documentation for this class was generated from the following file: