Home   >   User Resources   >   Online Help   >   apaGraph.Topology.TotalWeight
 

 

Function index Version 3.0.0

apaGraph.Topology.TotalWeight(Edges, NumberOfNodes, IsWeighted, IsStandard)

Excel=apaGraph.Topology.TotalWeight(Edges, NumberOfNodes, IsWeighted, IsStandard)

Result

Calculates the total weight of a graph, i.e. the sum of all edge weights. Unit weights are used when IsWeighted is FALSE. If IsStandard is TRUE, the total weight is divided by the number of nodes.

Syntax

Edges: graph as an edge list, i.e. an n x 3 data matrix, the first two columns containing the node indices and the third column the distance between the two nodes

NumberOfNodes: total number of nodes

IsWeighted: TRUE to use the distance information, FALSE to assume unit distances

IsStandard: TRUE to divide the total weight by the number of nodes