Table of Contents
Graph()
DiGraph()
MultiGraph()
MultiDiGraph()
Auto-generated API
networkx.algorithms.bipartite.basic.
is_bipartite
Returns True if graph G is bipartite, False if not.
See also
color, is_bipartite_node_set
color
is_bipartite_node_set
Examples
>>> from networkx.algorithms import bipartite >>> G = nx.path_graph(4) >>> print(bipartite.is_bipartite(G)) True