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

Online Help

GraphTheory

  

WienerIndex

  

find the Wiener index of a graph

 

Calling Sequence

Parameters

Description

Definition

Examples

Compatibility

Calling Sequence

WienerIndex(G)

Parameters

G

-

graph

Description

• 

WienerIndex returns the Wiener index of a graph G.

• 

If G is disconnected, then WienerIndex returns infinity.

Definition

• 

The Wiener index of a graph is the sum of the lengths of the shortest paths between all pairs of vertices in the graph.

Examples

(1)

(2)

(3)

(4)

Compatibility

• 

The GraphTheory[WienerIndex] command was introduced in Maple 2024.

• 

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

See Also

AllPairsDistance

Diameter

DijkstrasAlgorithm

Distance

Eccentricity

 


Download Help Document