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

Online Help

All Products    Maple    MapleSim


GraphTheory[SpecialGraphs]

  

TuranGraph

  

construct Turan graph

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

TuranGraph(n,k)

Parameters

n, k

-

positive integers

Description

• 

The TuranGraph(n,k) command returns the Turán graph with parameters n, k.

• 

The Turán graph is the complete k-partite graph on n vertices whose partitions are as close to equal in cardinality as possible.

Examples

> 

with⁡GraphTheory:with⁡SpecialGraphs:

> 

G≔TuranGraph⁡5,3

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

(1)
> 

NumberOfEdges⁡G

8

(2)
> 

G≔TuranGraph⁡5,4

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

(3)
> 

NumberOfEdges⁡G

9

(4)
> 

DrawGraph⁡G

References

  

"Turán graph", Wikipedia. http://en.wikipedia.org/wiki/Turan_graph

Compatibility

• 

The GraphTheory[SpecialGraphs][TuranGraph] command was introduced in Maple 2018.

• 

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

See Also

SpecialGraphs