Commit ede94aaf authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Still import draw module, even when gv not present

graph_draw() won't work if gv is not available, and just a warning is
printed... This makes graph_tool.all work when gv is not available.
parent a79f5dbb
......@@ -16,12 +16,17 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys, os, os.path, time
import sys, os, os.path, time, warnings
import matplotlib.cm
import matplotlib.colors
from .. core import _degree, _prop, PropertyMap
from .. decorators import _limit_args
import gv
try:
import gv
except ImportError:
warnings.warn("error importing gv module... graph_draw() will not work.",
ImportWarning)
def graph_draw(g, pos=None, size=(15,15), pin=False, layout="neato",
maxiter=None, ratio="fill", overlap=False, splines=False,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment