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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

Radius

  

find the minimum eccentricity of a graph

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Radius(G)

Parameters

G

-

graph

Description

• 

Radius returns the minimum eccentricity over all vertices in the graph G.

• 

If G is disconnected, then Radius returns infinity.

• 

For weighted graphs the edge weights are used to denote the distance accrued while traveling along each edge.  For unweighted graphs the length of each edge is assumed to be 1.

Examples

> 

with⁡GraphTheory:

> 

with⁡SpecialGraphs:

> 

P≔PetersenGraph⁡

P≔Graph 1: an undirected graph with 10 vertices and 15 edges

(1)
> 

Radius⁡P

2

(2)
> 

C≔CycleGraph⁡19

C≔Graph 2: an undirected graph with 19 vertices and 19 edges

(3)
> 

Radius⁡C

9

(4)
> 

G≔Graph⁡1,2,0.2,1,4,1.1,2,3,0.3,3,4,0.4

G≔Graph 3: an undirected weighted graph with 4 vertices and 4 edges

(5)
> 

DrawGraph⁡G

> 

Radius⁡G

0.5

(6)

The distance between vertices 1 and 4 is maximal

> 

DijkstrasAlgorithm⁡G,1,4

1,2,3,4,0.9

(7)

Compatibility

• 

The GraphTheory[Radius] command was introduced in Maple 2017.

• 

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

See Also

AllPairsDistance

Diameter

DijkstrasAlgorithm

Distance

Eccentricity