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

Commit

Permalink
unneccessary comments removed
Browse files Browse the repository at this point in the history
  • Loading branch information
vipul79321 committed May 12, 2020
1 parent bf852a4 commit 9e2dcc8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sage/graphs/graph.py
Expand Up @@ -5194,7 +5194,8 @@ def centrality_degree(self, v=None):
else:
return self.degree(v)/n_minus_one

# Eccentricity
### Distances

@doc_index("Distances")
def eccentricity(self, v=None, by_weight=False, algorithm=None,
weight_function=None, check_weight=True, dist_dict=None,
Expand Down Expand Up @@ -5420,7 +5421,6 @@ def weight_function(e):
return v
return [ecc[u] for u in v]

# Radius
@doc_index("Distances")
def radius(self, by_weight=False, algorithm=None, weight_function=None,
check_weight=True):
Expand Down Expand Up @@ -5484,7 +5484,6 @@ def radius(self, by_weight=False, algorithm=None, weight_function=None,
check_weight=check_weight,
algorithm=algorithm))

# Diameter
@doc_index("Distances")
def diameter(self, by_weight=False, algorithm=None, weight_function=None,
check_weight=True):
Expand Down Expand Up @@ -5602,7 +5601,6 @@ def diameter(self, by_weight=False, algorithm=None, weight_function=None,
check_weight=check_weight,
algorithm=algorithm))

# Center
@doc_index("Distances")
def center(self, by_weight=False, algorithm=None, weight_function=None,
check_weight=True):
Expand Down Expand Up @@ -5675,7 +5673,6 @@ def center(self, by_weight=False, algorithm=None, weight_function=None,
return []
return [v for v in self if ecc[v] == r]

# Periphery
@doc_index("Distances")
def periphery(self, by_weight=False, algorithm=None, weight_function=None,
check_weight=True):
Expand Down

0 comments on commit 9e2dcc8

Please sign in to comment.