NetworkxD3
NetworkxD3 copied to clipboard
NetworkxD3 issue
[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)