Update hopcroft_karp.cpp

This commit is contained in:
@8848hg
2020-09-29 16:55:15 +05:30
committed by GitHub
parent 924c3597f5
commit 0581f3718a

View File

@@ -226,16 +226,9 @@ bool BGraph::dfs(int u)
BGraph::BGraph():NIL(0),INF(INT_MAX)
{}
// Default Constructor for initialization
BGraph::BGraph(){
NIL=0;
INF=INT_MAX;
}
// Constructor for initialization
BGraph::BGraph(int m, int n):NIL(0),INF(INT_MAX)
{
this->BGraph();
this->m = m;
this->n = n;
adj = std::vector<std::list<int> >(m + 1);