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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsTournament

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsTournament(G)

Parameters

G

-

graph

Description

• 

IsTournament returns true if the input graph is a tournament. It returns false otherwise.

• 

A tournament is a directed graph G that satisfies the following property: for every pair of vertices u and v in G exactly one of the directed edges u,v or v,u is in G.

Examples

> 

with⁡GraphTheory:

> 

T1≔Digraph⁡1,2,2,3,3,1

T1≔Graph 1: a directed graph with 3 vertices and 3 arcs

(1)
> 

IsTournament⁡T1

true

(2)
> 

T2≔Digraph⁡1,2,1,3,2,3,3,1

T2≔Graph 2: a directed graph with 3 vertices and 4 arcs

(3)
> 

IsTournament⁡T2

false

(4)
> 

T3≔Digraph⁡1,2,2,3

T3≔Graph 3: a directed graph with 3 vertices and 2 arcs

(5)
> 

IsTournament⁡T3

false

(6)

See Also

AdjacencyMatrix

HasEdge

RandomGraphs[RandomTournament]