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

Commit

Permalink
Buckygen is no longer an optional package
Browse files Browse the repository at this point in the history
  • Loading branch information
nvcleemp committed Sep 9, 2014
1 parent 1161342 commit 20a1dd7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/sage/graphs/graph_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,29 +992,29 @@ def fullerenes(self, order, ipr=False):
There are 1812 isomers of `\textrm{C}_{60}`, i.e., 1812 fullerene graphs
on 60 vertices: ::
sage: gen = graphs.fullerenes(60) # optional buckygen
sage: len(list(gen)) # optional buckygen
sage: gen = graphs.fullerenes(60)
sage: len(list(gen))
1812
However, there is only one IPR fullerene graph on 60 vertices: the famous
Buckminster Fullerene: ::
sage: gen = graphs.fullerenes(60, ipr=True) # optional buckygen
sage: gen.next() # optional buckygen
sage: gen = graphs.fullerenes(60, ipr=True)
sage: gen.next()
Graph on 60 vertices
sage: gen.next() # optional buckygen
sage: gen.next()
Traceback (most recent call last):
...
StopIteration
The unique fullerene graph on 20 vertices is isomorphic to the dodecahedron
graph. ::
sage: gen = graphs.fullerenes(20) # optional buckygen
sage: g = gen.next() # optional buckygen
sage: g.is_isomorphic(graphs.DodecahedralGraph()) # optional buckygen
sage: gen = graphs.fullerenes(20)
sage: g = gen.next()
sage: g.is_isomorphic(graphs.DodecahedralGraph())
True
sage: g.get_embedding() # optional buckygen
sage: g.get_embedding()
{1: [2, 3, 4],
2: [1, 5, 6],
3: [1, 7, 8],
Expand All @@ -1035,7 +1035,7 @@ def fullerenes(self, order, ipr=False):
18: [12, 20, 13],
19: [14, 20, 15],
20: [17, 19, 18]}
sage: g.plot3d(layout='spring') # optional buckygen
sage: g.plot3d(layout='spring')
REFERENCE:
Expand All @@ -1044,7 +1044,7 @@ def fullerenes(self, order, ipr=False):
"""
from sage.misc.package import is_package_installed
if not is_package_installed("buckygen"):
raise TypeError("the optional buckygen package is not installed")
raise TypeError("the buckygen package is not installed")

# number of vertices should be positive
if order < 0:
Expand Down

0 comments on commit 20a1dd7

Please sign in to comment.