GraphTheory/IsBiregular - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : GraphTheory/IsBiregular

GraphTheory

  

IsBiregular

  

test if graph is biregular

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

IsBiregular(G)

IsBiregular(G, P)

Parameters

G

-

graph

P

-

name

Options

  

The options argument can contain one or more of the options shown below.

• 

partition=truefalse

  

If partition=true and G is biregular, two lists of vertices comprising a biregular partition of G are returned. Otherwise a simple Boolean value is returned indicating whether the graph is biregular.

Description

• 

IsBiregular returns true if the graph G is biregular 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 biregular if its set of vertices can be partitioned into two sets, V1 and V2, such that every edge in G connects a vertex in V1 to a vertex in V2 and if there exist non-negative integers D1 and D2 such that every vertex in V1 has degree D1 and every vertex in V2 has degree D2.

Examples

> 

with⁡GraphTheory:

> 

K32≔CompleteGraph⁡3,2

K32≔Graph 1: an undirected graph with 5 vertices and 6 edges

(1)
> 

IsBiregular⁡K32,partition

true,1,2,3,4,5

(2)
> 

DrawGraph⁡K32,style=bipartite

> 

AdjacencyMatrix⁡K32

0001100011000111110011100

(3)
> 

G≔CycleGraph⁡5

G≔Graph 2: an undirected graph with 5 vertices and 5 edges

(4)
> 

IsBiregular⁡G

false

(5)

Compatibility

• 

The GraphTheory[IsBiregular] command was introduced in Maple 2019.

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

AdjacencyMatrix

BipartiteMatching

DrawGraph

IsBipartite

IsRegular