Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
is_bipartite
Returns True if graph G is bipartite, False if not.
G (NetworkX graph)
Examples
>>> from networkx.algorithms import bipartite >>> G = nx.path_graph(4) >>> print(bipartite.is_bipartite(G)) True
See also
color(), is_bipartite_node_set()
color()
is_bipartite_node_set()