Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting of graph only possible when edges are present. #2711

Closed
sorenwacker opened this issue May 21, 2018 · 0 comments
Closed

Plotting of graph only possible when edges are present. #2711

sorenwacker opened this issue May 21, 2018 · 0 comments
Labels
type: bug Something isn't correct or isn't working

Comments

@sorenwacker
Copy link

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']
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants