CXXGraph  0.4.0
CXXGraph is a header only, that manages the Graphs and it's algorithm in C++
Public Member Functions | Friends | List of all members
CXXGRAPH::UndirectedEdge< T > Class Template Reference
Inheritance diagram for CXXGRAPH::UndirectedEdge< T >:
Inheritance graph
[legend]
Collaboration diagram for CXXGRAPH::UndirectedEdge< T >:
Collaboration graph
[legend]

Public Member Functions

 UndirectedEdge (const unsigned long id, const Node< T > &node1, const Node< T > &node2)
 
 UndirectedEdge (const unsigned long id, const std::pair< const Node< T > *, const Node< T > * > &nodepair)
 
 UndirectedEdge (const Edge< T > &edge)
 
const Node< T > & getNode1 () const
 
const Node< T > & getNode2 () const
 
const std::optional< bool > isDirected () const override
 
const std::optional< bool > isWeighted () const override
 
 operator DirectedEdge< T > () const
 
- Public Member Functions inherited from CXXGRAPH::Edge< T >
 Edge (const unsigned long long id, const Node< T > &node1, const Node< T > &node2)
 
 Edge (const unsigned long long id, const std::pair< const Node< T > *, const Node< T > * > &nodepair)
 
const unsigned long long & getId () const
 
const std::pair< const Node< T > *, const Node< T > * > & getNodePair () const
 
virtual bool operator== (const Edge< T > &b) const
 
bool operator< (const Edge< T > &b) const
 

Friends

std::ostream & operator<< (std::ostream &os, const UndirectedEdge< T > &edge)
 

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