Hidden network generating rules from partially observed complex networks