Easy3D 2.6.1
Loading...
Searching...
No Matches
Graph::Edge Struct Reference

This type represents an edge (internally it is basically an index). More...

#include <graph.h>

Inheritance diagram for Graph::Edge:
Graph::BaseHandle

Public Member Functions

 Edge (int _idx=-1)
 Default constructor (with invalid index).
 
- Public Member Functions inherited from Graph::BaseHandle
 BaseHandle (int _idx=-1)
 Constructor with index.
 
int idx () const
 Get the underlying index of this handle.
 
void reset ()
 Reset handle to be invalid (index=-1).
 
bool is_valid () const
 Return whether the handle is valid, i.e., the index is not equal to -1.
 
bool operator== (const BaseHandle &_rhs) const
 Equality operator.
 
bool operator!= (const BaseHandle &_rhs) const
 Inequality operator.
 
bool operator< (const BaseHandle &_rhs) const
 Less than operator useful for sorting handles.
 

Detailed Description

This type represents an edge (internally it is basically an index).

See also
Vertex
Examples
Tutorial_109_Graph_Connectivity/main.cpp.

Constructor & Destructor Documentation

◆ Edge()

Edge ( int _idx = -1)
inlineexplicit

Default constructor (with invalid index).

Parameters
_idxThe index of the edge.

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