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

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Florent Raymond committed Apr 10, 2019
1 parent 7a3a79a commit ffbb1ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/graphs/domination.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _aux_with_rep(G, dom, u_next, V_next):
dominated_by_dom = set().union(
(G.neighbor_iterator(u, closed=True) for u in dom))
# S = neighbors of u_next in V_next that are not yet dominated:
S = set().intersection(G.neighbor_iterator(u_next),
S = set.intersection(set(G.neighbor_iterator(u_next)),
V_next - dominated_by_dom)
del dominated_by_dom

Expand All @@ -209,7 +209,7 @@ def _aux_with_rep(G, dom, u_next, V_next):
cand_ext_index = 0
for w in G.neighbor_iterator(u_next, closed=True):
# Notice that the case w = u_next is included
yield (set(w), cand_ext_index)
yield ({w}, cand_ext_index)
cand_ext_index += 1

else:
Expand All @@ -234,7 +234,7 @@ def _aux_with_rep(G, dom, u_next, V_next):
for Q in minimal_dominating_sets(G, S_minus):
# Closed neighborhood of Q:
NQ = set().union(
(self.neighbor_iterator(u, closed=True) for u in Q))
(G.neighbor_iterator(u, closed=True) for u in Q))
Nw_minus = set.intersection(
set(G.neighbor_iterator(w, closed=True)), S_plus)
if not NQ >= Nw_minus:
Expand Down

0 comments on commit ffbb1ad

Please sign in to comment.