Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:cytoscape/py2cytoscape into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeboucas committed Nov 14, 2018
2 parents 8a55ead + 4a4597b commit 35013af
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions py2cytoscape/util/util_igraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"""

try:
import igraph as ig
except Exception as error:
print(str(error))
print("py2cytoscape: Error importing igraph. You won't be able to import from igraph.")
ig = None
import igraph as ig
except Exception as error:
print(str(error))
print("py2cytoscape: Error importing igraph. You won't be able to import from igraph.")
ig = None

DEF_SCALING = 100.0


def from_igraph(igraph_network, layout=None, scale=DEF_SCALING):
if ig == None:
raise ImportError('igraph not found')
if ig is None:
raise ImportError('igraph not found')

new_graph = {}
network_data = {}
elements = {}
Expand Down

0 comments on commit 35013af

Please sign in to comment.