Betweenness centrality formulaFormalization of the shortest path algorithm to a linear programShortest path that passes through specific node(s)Betweenness centrality and least average shortest pathSort graph nodes by densityFind hamilton cycle in a directed graph reduced to sat problemWhat does a ball of center v and radius r with at most r hops away mean?Polynomial LP-based algorithm for cost minimization of DAG weights modificationDjikstra's shortest path vs Brandes algorithm for betweeness centralityFind all the cumulative sums in a DAGMinimum path cover— Disjointed paths with minimum total number of edges

How to fry ground beef so it is well-browned

Apply MapThread to all but one variable

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

Pre-plastic human skin alternative

How to limit Drive Letters Windows assigns to new removable USB drives

How could Tony Stark make this in Endgame?

How to display Aura JS Errors Lightning Out

How can I practically buy stocks?

Is Diceware more secure than a long passphrase?

Do I have an "anti-research" personality?

How to stop co-workers from teasing me because I know Russian?

How to prevent z-fighting in OpenSCAD?

What is causing the white spot to appear in some of my pictures

What does ゆーか mean?

Check if a string is entirely made of the same substring

How to not starve gigantic beasts

What does the integral of a function times a function of a random variable represent, conceptually?

As an international instructor, should I openly talk about my accent?

Is the claim "Employers won't employ people with no 'social media presence'" realistic?

On The Origin of Dissonant Chords

Mistake in years of experience in resume?

Initiative: Do I lose my attack/action if my target moves or dies before my turn in combat?

What makes accurate emulation of old systems a difficult task?

Was there a shared-world project before "Thieves World"?



Betweenness centrality formula


Formalization of the shortest path algorithm to a linear programShortest path that passes through specific node(s)Betweenness centrality and least average shortest pathSort graph nodes by densityFind hamilton cycle in a directed graph reduced to sat problemWhat does a ball of center v and radius r with at most r hops away mean?Polynomial LP-based algorithm for cost minimization of DAG weights modificationDjikstra's shortest path vs Brandes algorithm for betweeness centralityFind all the cumulative sums in a DAGMinimum path cover— Disjointed paths with minimum total number of edges













3












$begingroup$



Betweenness centrality is defined as the number of shortest paths that go through a node in the graph.The formula is:



$$sum_s neq v neq t fracsigma_st(v)sigma_st$$



Where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$.




However it doesn't seem to me that the formula calculates what is defined. Why do we divide by the total number of shortest paths between $s$ and $t$ each time? Shouldn't we just divide by $2$ to compensate the fact that $s$ and $t$ will appear twice in different orders?










share|cite









$endgroup$
















    3












    $begingroup$



    Betweenness centrality is defined as the number of shortest paths that go through a node in the graph.The formula is:



    $$sum_s neq v neq t fracsigma_st(v)sigma_st$$



    Where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$.




    However it doesn't seem to me that the formula calculates what is defined. Why do we divide by the total number of shortest paths between $s$ and $t$ each time? Shouldn't we just divide by $2$ to compensate the fact that $s$ and $t$ will appear twice in different orders?










    share|cite









    $endgroup$














      3












      3








      3





      $begingroup$



      Betweenness centrality is defined as the number of shortest paths that go through a node in the graph.The formula is:



      $$sum_s neq v neq t fracsigma_st(v)sigma_st$$



      Where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$.




      However it doesn't seem to me that the formula calculates what is defined. Why do we divide by the total number of shortest paths between $s$ and $t$ each time? Shouldn't we just divide by $2$ to compensate the fact that $s$ and $t$ will appear twice in different orders?










      share|cite









      $endgroup$





      Betweenness centrality is defined as the number of shortest paths that go through a node in the graph.The formula is:



      $$sum_s neq v neq t fracsigma_st(v)sigma_st$$



      Where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$.




      However it doesn't seem to me that the formula calculates what is defined. Why do we divide by the total number of shortest paths between $s$ and $t$ each time? Shouldn't we just divide by $2$ to compensate the fact that $s$ and $t$ will appear twice in different orders?







      graph-theory






      share|cite













      share|cite











      share|cite




      share|cite










      asked 4 hours ago









      ElooEloo

      515




      515




















          2 Answers
          2






          active

          oldest

          votes


















          2












          $begingroup$


          However it doesn't seem to me that the formula calculates what is defined.




          The formula is right. The betweenness centrality is a value in an interval $[0, ldots, 1]$. Thus, if the betweenness centrality of node $v$ is equal to $1$, then all shortest paths between two nodes of this graph pass through $v$. I will explain the correctness of this summation below.





          Why do we divide by the total number of shortest paths between s and t each time?




          You are developing a summation of the percentages. This is needed to ensure that this sum will never exceed $1$. Suppose that you have $m$ different $s$-$t$ pairs of vertices in your graph. Thus, $sigma_st = m$ and your summation goes through all $m$ $s$-$t$ pairs.

          One can note that the term $sigma_st(v)$ on this equation is binary (the shortest $s$-$t$ path passes through $v$ or not). Thus, if all $s$-$t$ paths go through $v$, you will have $m cdot frac1m = 1$.





          Shouldn't we just divide by 2 to compensate the fact that s and t will appear twice in different orders?




          Indirectly, you're right. This formula measures the percentage of the shortest $s$-$t$ paths that pass through node $v$. In fact, a simple optimization of this algorithm for undirected graphs is to consider only $s$-$t$ paths where $s < t$. However, you can't divide it by $2$.




          Curiosity: The only graph topology who has a node with betweenness centrality equal to $1$ is a star graph, like the examples shown in the figure below.



          Examples of star graphs






          share|cite|improve this answer











          $endgroup$












          • $begingroup$
            It looks like you confuse betweenness centrality of a node in a graph with the betweenness of a node between two nodes. The former might be greater than 1 before normalization.
            $endgroup$
            – Apass.Jack
            1 hour ago



















          2












          $begingroup$

          Suppose we want to quantify the extent to which $v$ is between $s$ and $t$. There could be a few ways.



          One way to describe that extent is the probability of passing through $v$ if we want to reach from $s$ to $t$ by a randomly-selected shortest path. Assuming each shortest path is selected with equal probability, we will get $fracsigma_st(v)sigma_st$, where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$. In particular, the extent of $v$ between $s$ and $t$ is 0 if none of the shortest paths from $s$ to $v$ goes through $v$ while it is 1 if all of them must go through $v$.



          Assigning the same weight to each pair of starting node and destination node, we can see that $sum_s neq v neq t fracsigma_st(v)sigma_st$ measure the extent in which $v$ is the center of betweenness.



          enter image description hereThe graph is created by https://graphonline.ru/



          If you use $fracsigma_st(v)2$ to quantify the extent to which $v$ is between $s$ and $t$, there is no problem if you just care about $v$ considering $s$ and $t$ as fixed. However, take a look at the above graph.



          • How much is $v_3$ between $v_0$ and $v_4$? There are 3 shortest paths from $v_0$ to $v_4$, 2 of which pass through $v_3$. We get $fracsigma_v_0v_4(V_3)2 = 2/2=1$.

          • How much is $v_5$ between $v_0$ and $v_6$? There is only 1 shortest path from $v_0$ to $v_6$, which passes through $v_5$. We get $fracsigma_v_0v_6(v_5)2 = 1/2=0.5$.

          Since $1>0.5$, we would like to conclude that $v_3$ is more between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. However, we can go to $v_4$ without passing through $v_3$ while we must pass through $v_5$ to reach $v_6$ by a shortest path. So $v_3$ should be less between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. This simple example shows that it does not make much sense to divide by 2 or, in fact, any constant if we want to normalize the measurement.





          Exercises



          Exercise 1. What are the centers of the graph above in terms of the betweenness centrality? (Note there could be multiple centers.)



          Exercise 2. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fractau_st(v)tau_st$, where $tau_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $tau_st(v)$ is the number of those edges that are also incident to $v$. Would you consider the above definition a better definition of betweenness centrality?



          Exercise 3. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fracrho_st(v)rho_st$, where $rho_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $rho_st(v)$ is the number of distinct edges that are on a shortest path from $s$ to $t$ that passes through $v$. Would you consider the above definition a better definition of betweenness centrality?






          share|cite|improve this answer











          $endgroup$













            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "419"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f108582%2fbetweenness-centrality-formula%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2












            $begingroup$


            However it doesn't seem to me that the formula calculates what is defined.




            The formula is right. The betweenness centrality is a value in an interval $[0, ldots, 1]$. Thus, if the betweenness centrality of node $v$ is equal to $1$, then all shortest paths between two nodes of this graph pass through $v$. I will explain the correctness of this summation below.





            Why do we divide by the total number of shortest paths between s and t each time?




            You are developing a summation of the percentages. This is needed to ensure that this sum will never exceed $1$. Suppose that you have $m$ different $s$-$t$ pairs of vertices in your graph. Thus, $sigma_st = m$ and your summation goes through all $m$ $s$-$t$ pairs.

            One can note that the term $sigma_st(v)$ on this equation is binary (the shortest $s$-$t$ path passes through $v$ or not). Thus, if all $s$-$t$ paths go through $v$, you will have $m cdot frac1m = 1$.





            Shouldn't we just divide by 2 to compensate the fact that s and t will appear twice in different orders?




            Indirectly, you're right. This formula measures the percentage of the shortest $s$-$t$ paths that pass through node $v$. In fact, a simple optimization of this algorithm for undirected graphs is to consider only $s$-$t$ paths where $s < t$. However, you can't divide it by $2$.




            Curiosity: The only graph topology who has a node with betweenness centrality equal to $1$ is a star graph, like the examples shown in the figure below.



            Examples of star graphs






            share|cite|improve this answer











            $endgroup$












            • $begingroup$
              It looks like you confuse betweenness centrality of a node in a graph with the betweenness of a node between two nodes. The former might be greater than 1 before normalization.
              $endgroup$
              – Apass.Jack
              1 hour ago
















            2












            $begingroup$


            However it doesn't seem to me that the formula calculates what is defined.




            The formula is right. The betweenness centrality is a value in an interval $[0, ldots, 1]$. Thus, if the betweenness centrality of node $v$ is equal to $1$, then all shortest paths between two nodes of this graph pass through $v$. I will explain the correctness of this summation below.





            Why do we divide by the total number of shortest paths between s and t each time?




            You are developing a summation of the percentages. This is needed to ensure that this sum will never exceed $1$. Suppose that you have $m$ different $s$-$t$ pairs of vertices in your graph. Thus, $sigma_st = m$ and your summation goes through all $m$ $s$-$t$ pairs.

            One can note that the term $sigma_st(v)$ on this equation is binary (the shortest $s$-$t$ path passes through $v$ or not). Thus, if all $s$-$t$ paths go through $v$, you will have $m cdot frac1m = 1$.





            Shouldn't we just divide by 2 to compensate the fact that s and t will appear twice in different orders?




            Indirectly, you're right. This formula measures the percentage of the shortest $s$-$t$ paths that pass through node $v$. In fact, a simple optimization of this algorithm for undirected graphs is to consider only $s$-$t$ paths where $s < t$. However, you can't divide it by $2$.




            Curiosity: The only graph topology who has a node with betweenness centrality equal to $1$ is a star graph, like the examples shown in the figure below.



            Examples of star graphs






            share|cite|improve this answer











            $endgroup$












            • $begingroup$
              It looks like you confuse betweenness centrality of a node in a graph with the betweenness of a node between two nodes. The former might be greater than 1 before normalization.
              $endgroup$
              – Apass.Jack
              1 hour ago














            2












            2








            2





            $begingroup$


            However it doesn't seem to me that the formula calculates what is defined.




            The formula is right. The betweenness centrality is a value in an interval $[0, ldots, 1]$. Thus, if the betweenness centrality of node $v$ is equal to $1$, then all shortest paths between two nodes of this graph pass through $v$. I will explain the correctness of this summation below.





            Why do we divide by the total number of shortest paths between s and t each time?




            You are developing a summation of the percentages. This is needed to ensure that this sum will never exceed $1$. Suppose that you have $m$ different $s$-$t$ pairs of vertices in your graph. Thus, $sigma_st = m$ and your summation goes through all $m$ $s$-$t$ pairs.

            One can note that the term $sigma_st(v)$ on this equation is binary (the shortest $s$-$t$ path passes through $v$ or not). Thus, if all $s$-$t$ paths go through $v$, you will have $m cdot frac1m = 1$.





            Shouldn't we just divide by 2 to compensate the fact that s and t will appear twice in different orders?




            Indirectly, you're right. This formula measures the percentage of the shortest $s$-$t$ paths that pass through node $v$. In fact, a simple optimization of this algorithm for undirected graphs is to consider only $s$-$t$ paths where $s < t$. However, you can't divide it by $2$.




            Curiosity: The only graph topology who has a node with betweenness centrality equal to $1$ is a star graph, like the examples shown in the figure below.



            Examples of star graphs






            share|cite|improve this answer











            $endgroup$




            However it doesn't seem to me that the formula calculates what is defined.




            The formula is right. The betweenness centrality is a value in an interval $[0, ldots, 1]$. Thus, if the betweenness centrality of node $v$ is equal to $1$, then all shortest paths between two nodes of this graph pass through $v$. I will explain the correctness of this summation below.





            Why do we divide by the total number of shortest paths between s and t each time?




            You are developing a summation of the percentages. This is needed to ensure that this sum will never exceed $1$. Suppose that you have $m$ different $s$-$t$ pairs of vertices in your graph. Thus, $sigma_st = m$ and your summation goes through all $m$ $s$-$t$ pairs.

            One can note that the term $sigma_st(v)$ on this equation is binary (the shortest $s$-$t$ path passes through $v$ or not). Thus, if all $s$-$t$ paths go through $v$, you will have $m cdot frac1m = 1$.





            Shouldn't we just divide by 2 to compensate the fact that s and t will appear twice in different orders?




            Indirectly, you're right. This formula measures the percentage of the shortest $s$-$t$ paths that pass through node $v$. In fact, a simple optimization of this algorithm for undirected graphs is to consider only $s$-$t$ paths where $s < t$. However, you can't divide it by $2$.




            Curiosity: The only graph topology who has a node with betweenness centrality equal to $1$ is a star graph, like the examples shown in the figure below.



            Examples of star graphs







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited 2 hours ago

























            answered 2 hours ago









            Iago CarvalhoIago Carvalho

            17017




            17017











            • $begingroup$
              It looks like you confuse betweenness centrality of a node in a graph with the betweenness of a node between two nodes. The former might be greater than 1 before normalization.
              $endgroup$
              – Apass.Jack
              1 hour ago

















            • $begingroup$
              It looks like you confuse betweenness centrality of a node in a graph with the betweenness of a node between two nodes. The former might be greater than 1 before normalization.
              $endgroup$
              – Apass.Jack
              1 hour ago
















            $begingroup$
            It looks like you confuse betweenness centrality of a node in a graph with the betweenness of a node between two nodes. The former might be greater than 1 before normalization.
            $endgroup$
            – Apass.Jack
            1 hour ago





            $begingroup$
            It looks like you confuse betweenness centrality of a node in a graph with the betweenness of a node between two nodes. The former might be greater than 1 before normalization.
            $endgroup$
            – Apass.Jack
            1 hour ago












            2












            $begingroup$

            Suppose we want to quantify the extent to which $v$ is between $s$ and $t$. There could be a few ways.



            One way to describe that extent is the probability of passing through $v$ if we want to reach from $s$ to $t$ by a randomly-selected shortest path. Assuming each shortest path is selected with equal probability, we will get $fracsigma_st(v)sigma_st$, where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$. In particular, the extent of $v$ between $s$ and $t$ is 0 if none of the shortest paths from $s$ to $v$ goes through $v$ while it is 1 if all of them must go through $v$.



            Assigning the same weight to each pair of starting node and destination node, we can see that $sum_s neq v neq t fracsigma_st(v)sigma_st$ measure the extent in which $v$ is the center of betweenness.



            enter image description hereThe graph is created by https://graphonline.ru/



            If you use $fracsigma_st(v)2$ to quantify the extent to which $v$ is between $s$ and $t$, there is no problem if you just care about $v$ considering $s$ and $t$ as fixed. However, take a look at the above graph.



            • How much is $v_3$ between $v_0$ and $v_4$? There are 3 shortest paths from $v_0$ to $v_4$, 2 of which pass through $v_3$. We get $fracsigma_v_0v_4(V_3)2 = 2/2=1$.

            • How much is $v_5$ between $v_0$ and $v_6$? There is only 1 shortest path from $v_0$ to $v_6$, which passes through $v_5$. We get $fracsigma_v_0v_6(v_5)2 = 1/2=0.5$.

            Since $1>0.5$, we would like to conclude that $v_3$ is more between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. However, we can go to $v_4$ without passing through $v_3$ while we must pass through $v_5$ to reach $v_6$ by a shortest path. So $v_3$ should be less between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. This simple example shows that it does not make much sense to divide by 2 or, in fact, any constant if we want to normalize the measurement.





            Exercises



            Exercise 1. What are the centers of the graph above in terms of the betweenness centrality? (Note there could be multiple centers.)



            Exercise 2. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fractau_st(v)tau_st$, where $tau_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $tau_st(v)$ is the number of those edges that are also incident to $v$. Would you consider the above definition a better definition of betweenness centrality?



            Exercise 3. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fracrho_st(v)rho_st$, where $rho_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $rho_st(v)$ is the number of distinct edges that are on a shortest path from $s$ to $t$ that passes through $v$. Would you consider the above definition a better definition of betweenness centrality?






            share|cite|improve this answer











            $endgroup$

















              2












              $begingroup$

              Suppose we want to quantify the extent to which $v$ is between $s$ and $t$. There could be a few ways.



              One way to describe that extent is the probability of passing through $v$ if we want to reach from $s$ to $t$ by a randomly-selected shortest path. Assuming each shortest path is selected with equal probability, we will get $fracsigma_st(v)sigma_st$, where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$. In particular, the extent of $v$ between $s$ and $t$ is 0 if none of the shortest paths from $s$ to $v$ goes through $v$ while it is 1 if all of them must go through $v$.



              Assigning the same weight to each pair of starting node and destination node, we can see that $sum_s neq v neq t fracsigma_st(v)sigma_st$ measure the extent in which $v$ is the center of betweenness.



              enter image description hereThe graph is created by https://graphonline.ru/



              If you use $fracsigma_st(v)2$ to quantify the extent to which $v$ is between $s$ and $t$, there is no problem if you just care about $v$ considering $s$ and $t$ as fixed. However, take a look at the above graph.



              • How much is $v_3$ between $v_0$ and $v_4$? There are 3 shortest paths from $v_0$ to $v_4$, 2 of which pass through $v_3$. We get $fracsigma_v_0v_4(V_3)2 = 2/2=1$.

              • How much is $v_5$ between $v_0$ and $v_6$? There is only 1 shortest path from $v_0$ to $v_6$, which passes through $v_5$. We get $fracsigma_v_0v_6(v_5)2 = 1/2=0.5$.

              Since $1>0.5$, we would like to conclude that $v_3$ is more between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. However, we can go to $v_4$ without passing through $v_3$ while we must pass through $v_5$ to reach $v_6$ by a shortest path. So $v_3$ should be less between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. This simple example shows that it does not make much sense to divide by 2 or, in fact, any constant if we want to normalize the measurement.





              Exercises



              Exercise 1. What are the centers of the graph above in terms of the betweenness centrality? (Note there could be multiple centers.)



              Exercise 2. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fractau_st(v)tau_st$, where $tau_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $tau_st(v)$ is the number of those edges that are also incident to $v$. Would you consider the above definition a better definition of betweenness centrality?



              Exercise 3. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fracrho_st(v)rho_st$, where $rho_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $rho_st(v)$ is the number of distinct edges that are on a shortest path from $s$ to $t$ that passes through $v$. Would you consider the above definition a better definition of betweenness centrality?






              share|cite|improve this answer











              $endgroup$















                2












                2








                2





                $begingroup$

                Suppose we want to quantify the extent to which $v$ is between $s$ and $t$. There could be a few ways.



                One way to describe that extent is the probability of passing through $v$ if we want to reach from $s$ to $t$ by a randomly-selected shortest path. Assuming each shortest path is selected with equal probability, we will get $fracsigma_st(v)sigma_st$, where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$. In particular, the extent of $v$ between $s$ and $t$ is 0 if none of the shortest paths from $s$ to $v$ goes through $v$ while it is 1 if all of them must go through $v$.



                Assigning the same weight to each pair of starting node and destination node, we can see that $sum_s neq v neq t fracsigma_st(v)sigma_st$ measure the extent in which $v$ is the center of betweenness.



                enter image description hereThe graph is created by https://graphonline.ru/



                If you use $fracsigma_st(v)2$ to quantify the extent to which $v$ is between $s$ and $t$, there is no problem if you just care about $v$ considering $s$ and $t$ as fixed. However, take a look at the above graph.



                • How much is $v_3$ between $v_0$ and $v_4$? There are 3 shortest paths from $v_0$ to $v_4$, 2 of which pass through $v_3$. We get $fracsigma_v_0v_4(V_3)2 = 2/2=1$.

                • How much is $v_5$ between $v_0$ and $v_6$? There is only 1 shortest path from $v_0$ to $v_6$, which passes through $v_5$. We get $fracsigma_v_0v_6(v_5)2 = 1/2=0.5$.

                Since $1>0.5$, we would like to conclude that $v_3$ is more between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. However, we can go to $v_4$ without passing through $v_3$ while we must pass through $v_5$ to reach $v_6$ by a shortest path. So $v_3$ should be less between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. This simple example shows that it does not make much sense to divide by 2 or, in fact, any constant if we want to normalize the measurement.





                Exercises



                Exercise 1. What are the centers of the graph above in terms of the betweenness centrality? (Note there could be multiple centers.)



                Exercise 2. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fractau_st(v)tau_st$, where $tau_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $tau_st(v)$ is the number of those edges that are also incident to $v$. Would you consider the above definition a better definition of betweenness centrality?



                Exercise 3. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fracrho_st(v)rho_st$, where $rho_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $rho_st(v)$ is the number of distinct edges that are on a shortest path from $s$ to $t$ that passes through $v$. Would you consider the above definition a better definition of betweenness centrality?






                share|cite|improve this answer











                $endgroup$



                Suppose we want to quantify the extent to which $v$ is between $s$ and $t$. There could be a few ways.



                One way to describe that extent is the probability of passing through $v$ if we want to reach from $s$ to $t$ by a randomly-selected shortest path. Assuming each shortest path is selected with equal probability, we will get $fracsigma_st(v)sigma_st$, where $sigma_st$ is the total number of shortest paths from node $s$ to node $t$ and $sigma _st(v)$ is the number of those paths that pass through $v$. In particular, the extent of $v$ between $s$ and $t$ is 0 if none of the shortest paths from $s$ to $v$ goes through $v$ while it is 1 if all of them must go through $v$.



                Assigning the same weight to each pair of starting node and destination node, we can see that $sum_s neq v neq t fracsigma_st(v)sigma_st$ measure the extent in which $v$ is the center of betweenness.



                enter image description hereThe graph is created by https://graphonline.ru/



                If you use $fracsigma_st(v)2$ to quantify the extent to which $v$ is between $s$ and $t$, there is no problem if you just care about $v$ considering $s$ and $t$ as fixed. However, take a look at the above graph.



                • How much is $v_3$ between $v_0$ and $v_4$? There are 3 shortest paths from $v_0$ to $v_4$, 2 of which pass through $v_3$. We get $fracsigma_v_0v_4(V_3)2 = 2/2=1$.

                • How much is $v_5$ between $v_0$ and $v_6$? There is only 1 shortest path from $v_0$ to $v_6$, which passes through $v_5$. We get $fracsigma_v_0v_6(v_5)2 = 1/2=0.5$.

                Since $1>0.5$, we would like to conclude that $v_3$ is more between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. However, we can go to $v_4$ without passing through $v_3$ while we must pass through $v_5$ to reach $v_6$ by a shortest path. So $v_3$ should be less between $v_0$ and $v_4$ than $v_5$ is between $v_0$ and $v_6$. This simple example shows that it does not make much sense to divide by 2 or, in fact, any constant if we want to normalize the measurement.





                Exercises



                Exercise 1. What are the centers of the graph above in terms of the betweenness centrality? (Note there could be multiple centers.)



                Exercise 2. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fractau_st(v)tau_st$, where $tau_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $tau_st(v)$ is the number of those edges that are also incident to $v$. Would you consider the above definition a better definition of betweenness centrality?



                Exercise 3. Suppose we define the betweenness centrality of $v$ as $sum_s neq v neq t fracrho_st(v)rho_st$, where $rho_st$ is the total number of distinct edges in the union of all shortest paths from $s$ to $t$ and $rho_st(v)$ is the number of distinct edges that are on a shortest path from $s$ to $t$ that passes through $v$. Would you consider the above definition a better definition of betweenness centrality?







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited 23 mins ago

























                answered 1 hour ago









                Apass.JackApass.Jack

                14.6k1940




                14.6k1940



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Computer Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f108582%2fbetweenness-centrality-formula%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to create a command for the “strange m” symbol in latex? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How do you make your own symbol when Detexify fails?Writing bold small caps with mathpazo packageplus-minus symbol with parenthesis around the minus signGreek character in Beamer document titleHow to create dashed right arrow over symbol?Currency symbol: Turkish LiraDouble prec as a single symbol?Plus Sign Too Big; How to Call adfbullet?Is there a TeX macro for three-legged pi?How do I get my integral-like symbol to align like the integral?How to selectively substitute a letter with another symbol representing the same letterHow do I generate a less than symbol and vertical bar that are the same height?

                    Българска екзархия Съдържание История | Български екзарси | Вижте също | Външни препратки | Литература | Бележки | НавигацияУстав за управлението на българската екзархия. Цариград, 1870Слово на Ловешкия митрополит Иларион при откриването на Българския народен събор в Цариград на 23. II. 1870 г.Българската правда и гръцката кривда. От С. М. (= Софийски Мелетий). Цариград, 1872Предстоятели на Българската екзархияПодмененият ВеликденИнформационна агенция „Фокус“Димитър Ризов. Българите в техните исторически, етнографически и политически граници (Атлас съдържащ 40 карти). Berlin, Königliche Hoflithographie, Hof-Buch- und -Steindruckerei Wilhelm Greve, 1917Report of the International Commission to Inquire into the Causes and Conduct of the Balkan Wars

                    Чепеларе Съдържание География | История | Население | Спортни и природни забележителности | Културни и исторически обекти | Религии | Обществени институции | Известни личности | Редовни събития | Галерия | Източници | Литература | Външни препратки | Навигация41°43′23.99″ с. ш. 24°41′09.99″ и. д. / 41.723333° с. ш. 24.686111° и. д.*ЧепелареЧепеларски Linux fest 2002Начало на Зимен сезон 2005/06Национални хайдушки празници „Капитан Петко Войвода“Град ЧепелареЧепеларе – народният ски курортbgrod.orgwww.terranatura.hit.bgСправка за населението на гр. Исперих, общ. Исперих, обл. РазградМузей на родопския карстМузей на спорта и скитеЧепеларебългарскибългарскианглийскитукИстория на градаСки писти в ЧепелареВремето в ЧепелареРадио и телевизия в ЧепелареЧепеларе мами с родопски чар и добри пистиЕвтин туризъм и снежни атракции в ЧепелареМестоположениеИнформация и снимки от музея на родопския карст3D панорами от ЧепелареЧепелареррр