You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed I get an error message when the line defining the edge is commented out. It can be plotted using networkx.draw() though.
import holoviews as hv
import networkx as nx
hv.extension('bokeh')
G = nx.Graph()
G.add_nodes_from([1, 2, 3])
# G.add_weighted_edges_from( [(1,2,0)] )
%opts Graph [width=400 height=400]
padding = dict(x=(-10, 10), y=(-10, 10))
hv.Graph.from_networkx(G, nx.layout.circular_layout).redim.range(**padding)
>>> DataError: Following columns specified as dimensions but not found in data: ['start', 'end']
The text was updated successfully, but these errors were encountered:
I noticed I get an error message when the line defining the edge is commented out. It can be plotted using
networkx.draw()
though.The text was updated successfully, but these errors were encountered: