Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Undo commit moving closeness_centrality to centrality.pyx. Corrected …
Browse files Browse the repository at this point in the history
…links.
  • Loading branch information
Michele Borassi committed Aug 19, 2015
1 parent 5c67f79 commit 1551c6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/sage/graphs/generic_graph.py
Expand Up @@ -13971,7 +13971,7 @@ def centrality_closeness(self, vert=None, by_weight=False, algorithm=None,

REFERENCES:

.. [Borgatti95] Stephen P Borgatti. (1995). Centrality and AIDS.
.. [Borgatti95] Stephen P. Borgatti. (1995). Centrality and AIDS.
[Online] Available:
http://www.analytictech.com/networks/centaids.htm

Expand Down Expand Up @@ -14018,7 +14018,6 @@ def centrality_closeness(self, vert=None, by_weight=False, algorithm=None,
{}
sage: print g.centrality_closeness(0)
None


Weighted graphs::

Expand All @@ -14035,7 +14034,7 @@ def centrality_closeness(self, vert=None, by_weight=False, algorithm=None,

sage: import random
sage: import itertools
sage: for i in range(100): # long time
sage: for i in range(10): # long time
....: n = random.randint(2,20)
....: m = random.randint(0, n*(n-1)/2)
....: g = graphs.RandomGNM(n,m)
Expand All @@ -14054,7 +14053,7 @@ def centrality_closeness(self, vert=None, by_weight=False, algorithm=None,

sage: import random
sage: import itertools
sage: for i in range(100): # long time
sage: for i in range(10): # long time
....: n = random.randint(2,20)
....: m = random.randint(0, n*(n-1)/2)
....: g = digraphs.RandomDirectedGNM(n,m)
Expand All @@ -14073,7 +14072,7 @@ def centrality_closeness(self, vert=None, by_weight=False, algorithm=None,

sage: import random
sage: import itertools
sage: for i in range(100): # long time
sage: for i in range(10): # long time
....: n = random.randint(2,20)
....: m = random.randint(0, n*(n-1)/2)
....: g = graphs.RandomGNM(n,m)
Expand Down
2 changes: 1 addition & 1 deletion src/sage/graphs/graph.py
Expand Up @@ -4731,7 +4731,7 @@ def centrality_degree(self, v=None):
.. SEEALSO::
- :meth:`centrality_closeness`
- :meth:`~sage.graphs.generic_graph.GenericGraph.centrality_closeness`
- :meth:`~sage.graphs.generic_graph.GenericGraph.centrality_betweenness`
EXAMPLES::
Expand Down

0 comments on commit 1551c6f

Please sign in to comment.