How can one calculate betweeness centrality of your node as mentioned in this video. I would like to take into consideration
Is there a smart way to figure out what suites your lnd node?
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
Lnd itself does not provide the betweeness centrality of your or any nodes. However you access the network with the graph api call and compute the centrality yourself. You can either implement it yourself by following the instructions from the Wikipedia article or you can use a graph lib like networkx that does it with one api call after you passed the network to such a lib.
Also please keep in mind that of corse one can model the weights of the lightning network differently (for example by just taking channels as edges with weight 1) or by trying to model in the fees. When one does so the problem is how to model in the dynamic
fee_rate together with the
static base_fee_msat` as the resulting fee that one pays would depend on the amount that is being transferred. this amount could change and thus the network would change.