parse() method parses the UAI file to get the network type (m_net_type), number of variables(m_num_vars), etc, so that the get_net_type(), get_num_vars() could return the corresponding values.