apaGraph.Topology.MeanOccupationLayer(Edges, NumberOfNodes)
=apaGraph.Topology.MeanOccupationLayer(Edges, NumberOfNodes)Result
Calculates the mean occupation layer of a graph relative to its central node, the node with the most connections. Returns a 1 x 3 vector with the index of the central node, its number of connections and the mean occupation layer.
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
Remarks
The mean occupation layer follows Onnela et al. (2003): each node is assigned a level equal to the number of edges on its shortest path to the central node, which has level 0. The mean occupation layer is the average level of all nodes, l = (1/N) Σ level(i). Edge distances are not used. If several nodes have the most connections, the one with the smallest mean occupation layer is chosen, and remaining ties are resolved by the smaller node index. If the graph is not connected, the mean occupation layer is #N/A.
