Skip to content

Commit 57156ca

Browse files
committed
replace some leftovers
1 parent 96d324f commit 57156ca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sage/graphs/bliss.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ cpdef canonical_form(G, partition=None, return_graph=False,
476476
....: for labels in product([0,1], repeat=len(edges)):
477477
....: g = Graph([(u,v,l) for ((u,v),l) in zip(edges, labels)])
478478
....: gcan = canonical_form(g, use_edge_labels=True)
479-
....: for p in permutations(range(g.num_verts())):
479+
....: for p in permutations(range(g.n_vertices())):
480480
....: h = Graph([(p[u], p[v], lab) for u,v,lab in g.edges(sort=True)])
481481
....: hcan = canonical_form(h, use_edge_labels=True)
482482
....: if gcan != hcan: print(edges, labels, p)

src/sage/graphs/generators/trees.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ cdef class TreeIterator:
513513
....: return False
514514
....: if t.n_vertices() != n:
515515
....: return False
516-
....: if t.num_edges() != n - 1:
516+
....: if t.n_edges() != n - 1:
517517
....: return False
518518
....: for tree in trees:
519519
....: if tree.is_isomorphic(t):

src/sage/graphs/graph_generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ def __call__(self, vertices=None, property=None, augment='edges', size=None,
798798
::
799799
800800
sage: for g in graphs():
801-
....: if g.num_verts() > 3: break
801+
....: if g.n_vertices() > 3: break
802802
....: print(g)
803803
Graph on 0 vertices
804804
Graph on 1 vertex

0 commit comments

Comments
 (0)