Changed networkx import line; we may have to deal with version issues here.

This commit is contained in:
Bob Lantz
2010-10-17 17:36:48 -07:00
parent 87737a7064
commit 24baea734f
+5 -1
View File
@@ -11,7 +11,11 @@ A Topo object can be a topology database for NOX, can represent a physical
setup for testing, and can even be emulated with the Mininet package. setup for testing, and can even be emulated with the Mininet package.
''' '''
from networkx.classes.graph import Graph # BL: we may have to fix compatibility here.
# networkx is also a fairly heavyweight dependency
# from networkx.classes.graph import Graph
from networkx import Graph
from mininet.node import SWITCH_PORT_BASE from mininet.node import SWITCH_PORT_BASE
class NodeID(object): class NodeID(object):