MP7
Graph-CYOA
DirectedEdge Class Reference
Inheritance diagram for DirectedEdge:
[legend]
Collaboration diagram for DirectedEdge:
[legend]

Public Member Functions

 DirectedEdge (const Vertex &source, const Vertex &dest, double weight=1)
 
bool directed () const
 Returns true if the Edge is directed; otherwise false. More...
 
- Public Member Functions inherited from Edge
 Edge (const Vertex &source, const Vertex &dest, double weight=1)
 
const Vertex & source () const
 Returns the source Vertex of the Edge. More...
 
const Vertex & dest () const
 Returns the destination Vertex of the Edge. More...
 
double weight () const
 Returns the weight of the Edge. More...
 
bool operator== (const Edge &other) const
 Returns true if the Edge connects the same vertex endpoints as the other Edge. More...
 
string & operator[] (const string &value)
 Add, modify, or read a key/value propoerty of the Edge. More...
 

Member Function Documentation

◆ directed()

bool DirectedEdge::directed ( ) const
inlinevirtual

Returns true if the Edge is directed; otherwise false.

Reimplemented from Edge.


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