Ticket #14618: trac_14618_bound_254.patch

File trac_14618_bound_254.patch, 1.3 KB (added by Nico Van Cleemput, 10 years ago)
  • sage/graphs/graph_generators.py

    # HG changeset patch
    # User Nico Van Cleemput <nico.vancleemput@gmail.com>
    # Date 1369825378 -7200
    # Node ID ee06ca0d9cdded157f5684d839040c44f4659e48
    # Parent  d8e1895c04bab0e112b39ddd917921ab374c3277
    Trac 14618: Only allow the generation of fullerenes on up to 254 vertices
    
    diff --git a/sage/graphs/graph_generators.py b/sage/graphs/graph_generators.py
    a b  
    915915
    916916        INPUT:
    917917
    918         - ``order`` - a positive even integer smaller than or equal to 300.
     918        - ``order`` - a positive even integer smaller than or equal to 254.
    919919          This specifies the number of vertices in the generated fullerenes.
    920920
    921921        - ``ipr`` - default: ``False`` - if ``True`` only fullerenes that
     
    997997        if order < 0:
    998998            raise ValueError("Number of vertices should be positive.")
    999999
    1000         # buckygen can only handle fullerenes on up to 300 vertices
    1001         if order > 300:
    1002             raise ValueError("Number of vertices should be at most 300.")
     1000        # buckygen can only output fullerenes on up to 254 vertices
     1001        if order > 254:
     1002            raise ValueError("Number of vertices should be at most 254.")
    10031003
    10041004        # fullerenes only exist for an even number of vertices, larger than 20
    10051005        # and different from 22