Can the centrality measures in Mathematica (e.g., degree, betweenness, edge betweenness) be adjusted for weight on the edges, where weights represent the volume of an item (say, in Kg)? This would be for directed graphs.
1 Answer
$\begingroup$ $\endgroup$
5 The answer depends on which specific measure you want to compute.
The IGraph/M package does contain weighted implementations for most measures where Mathematica ignores weights.
- $\begingroup$ we would use mass on the edges $\endgroup$user42700– user427002024-05-02 12:00:29 +00:00Commented May 2, 2024 at 12:00
- $\begingroup$ Is there an example with IGraph/M you could share, with edge weights as kg (mass)? $\endgroup$user42700– user427002024-05-02 12:02:13 +00:00Commented May 2, 2024 at 12:02
- 1$\begingroup$ The documentation contains many examples, have you looked at it? Edge weights are arbitrary numerical quantities: it makes no difference what the unit of measurement is. That said, read up on the definition of the various centralities, and how they use weights. It makes no sense to use masses where weights are interpreted as edge/path length (e.g. betweenness, closeness). $\endgroup$Szabolcs– Szabolcs2024-05-02 12:07:10 +00:00Commented May 2, 2024 at 12:07
- $\begingroup$ so masses are not captured as an edge weight; just edge/path length $\endgroup$user42700– user427002024-05-02 13:21:56 +00:00Commented May 2, 2024 at 13:21
- 1$\begingroup$ I'm sorry, I do not understand your question. I suggest reading up on each centrality measure you want to compute. Make sure you understand how they work before you use them. $\endgroup$Szabolcs– Szabolcs2024-05-02 15:33:48 +00:00Commented May 2, 2024 at 15:33