code: def testIsBipartite(self):
      g = Graph.Star(10)
      self.assertTrue(g.is_bipartite() is True)
      self.assertTrue(
          g.is_bipartite(True) == (True, [False] + [True] * 9)
      )
      g = Graph.Tree(100, 3)
      self.assertTrue(g.is_bipartite() is True)
      g = Graph.Ring(9)
      self.assertTrue(g.is_bipartite() is False)
      self.assertTrue(g.is_bipartite(True) == (False, None))
      g = Graph.Ring(10)
      self.assertTrue(g.is_bipartite() is True)
      g += (2, 0)
      self.assertTrue(g.is_bipartite(True) == (False, None))
  
file_path: python-igraph/tests/test_bipartite.py
imports: import unittest
  from igraph import Graph
label_desc: Use image node_id 7 for calling the BipartiteTests obj's underlying member method code with example usage: obj.testIsBipartite() without return types