Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
Loading...
Searching...
No Matches
Edge Struct Reference

Public Member Functions

 Edge (Edge &&)=default
 
Edgeoperator= (Edge &&)=default
 
 Edge (Edge const &)=default
 
Edgeoperator= (Edge const &)=default
 
 Edge (unsigned int source, unsigned int destination)
 

Public Attributes

int src
 
int dst
 
int weight
 
unsigned int src
 
unsigned int dest
 

Detailed Description

Implementation of non-weighted directed edge of a graph.

The source vertex of the edge is labelled "src" and destination vertex is labelled "dest".

Constructor & Destructor Documentation

◆ Edge()

Edge::Edge ( unsigned int source,
unsigned int destination )
inline

Set the source and destination of the vertex.

Parameters
sourceis the source vertex of the edge.
destinationis the destination vertex of the edge.
41 : src(source), dest(destination) {}

The documentation for this struct was generated from the following files: