NetworkX is required so remove optional import

This commit is contained in:
Juan Nunez-Iglesias
2015-12-14 17:12:11 +11:00
parent 975d1a4cc0
commit 97f3ad1a6b
+1 -12
View File
@@ -1,15 +1,4 @@
try:
import networkx as nx
except ImportError:
msg = "Graph functions require networkx, which is not installed"
class nx:
class Graph:
def __init__(self, *args, **kwargs):
raise ImportError(msg)
import warnings
warnings.warn(msg)
import networkx as nx
import numpy as np
from scipy import ndimage as ndi
import math