Vertex::Vertex

Constructor


Vertex(const T & L);

Constructs a vertex.

Parameters

L is the label of vertex.
T is the type of label of that vertex.

Return value

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

None

Time Complexity

© The University of Hong Kong Algorithms Library - hkual@cs.hku.hk