IsBipartite - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsBipartite

  

test if graph is bipartite

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsBipartite(G)

IsBipartite(G, P)

Parameters

G

-

graph

P

-

(optional) name

Description

• 

IsBipartite returns true if the graph G is bipartite and false otherwise. If a variable name P is specified, then this name is assigned a bipartition of the vertices as a list of lists.

• 

A graph G is bipartite if its set of vertices can be partitioned into two sets,  and , such that every edge in G connects a vertex in  or  to a vertex in the other set.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

See Also

AdjacencyMatrix

BipartiteMatching

DrawGraph

RandomGraphs[RandomBipartiteGraph]

 


Download Help Document