class_docstr: Tests for bipartite matching algorithms.
class_docstr_tok: ["Tests","for","bipartite","matching","algorithms","."]
docstr: Test for converting a maximum matching to a minimum vertex cover.
docstr_tok: ["Test","for","converting","a","maximum","matching","to","a","minimum","vertex","cover","."]
code: def test_to_vertex_cover(self):
      """Test for converting a maximum matching to a minimum vertex cover."""
      matching = maximum_matching(self.graph, self.top_nodes)
      vertex_cover = to_vertex_cover(
          self.graph, matching, self.top_nodes
      )
      self.check_vertex_cover(vertex_cover)
  
imports: import itertools
  import pytest
  import networkx
  from networkx.algorithms.bipartite.matching import eppstein_matching, hopcroft_karp_matching, maximum_matching, minimum_weight_full_matching, to_vertex_cover
label_desc: Use image node_id 6 for calling the TestMatching obj's underlying member method code with example usage: obj.test_to_vertex_cover() without return types