NetworkxD3 icon indicating copy to clipboard operation
NetworkxD3 copied to clipboard

NetworkxD3 issue

Open lemhop opened this issue 9 years ago • 1 comments

[Apologies in advance if it transpires that this issue is due to my newbie-ness.]

After installing NetworkxD3 as described and trying to run the MWE provided (see end), I get the following error: "NameError: name 'simpleNetworkx' is not defined"

Can you help? I am running Python 2.7.10.

Thanks, Lisa


import networkx as nx from NetworkxD3 import simpleNetworkx

G = nx.Graph() H = ["A","B","C","D","E","F","G", "H","I","J"] G.add_nodes_from(H) G.add_edges_from([("A","B"), ("A","C"), ("A","D"), ("A","J"), ("B","E"), ("B","F"), ("C","G"),("C","H"), ("D","I")])

simpleNetworkx(G)

lemhop avatar Oct 22 '15 09:10 lemhop