Constructor
Vertex(const T & L);
Constructs a vertex.
L is the label of vertex. T is the type of label of that vertex.
None
Example
#include "HKUAL_graph.h" #include <iostream> using namespace std; using namespace HKUAL; int main(){ Vertex<string> V1("A"); Vertex<int> V2(2); return 0; }
Output
Time Complexity