Skip to content

Correctly using NetworkModule visualisation to visualise a network #1560

Answered by rht
MechaKaradi asked this question in Q&A
Discussion options

You must be logged in to vote

The error message I got is Uncaught Error: node not found: 15012.
TypeError: t.app is undefined content_script_bundle.js:93:1027 this is probably one of your Chrome/Firefox extension's problem.

The error is due to street_network.data has the node indices starting from 1, 2, 3, ..., but D3.js assumes the nodes start from 0, 1, 2...
To fix the node not found error message, you rename node 15012 to node 0:

self.G = nx.relabel_nodes(self.G, {3999: 0})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MechaKaradi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants