nx_altair icon indicating copy to clipboard operation
nx_altair copied to clipboard

Draw interactive NetworkX graphs with Altair

Results 10 nx_altair issues
Sort by recently updated
recently updated
newest added

Hi guys! I've found a small issue with edge width. I've just fixed it, I think it is very clear from code what the problem was, but let me know...

The proposed changes mainly correct Exceptions with incorrect comments. I also fixed incorrect code comments.

HI, The code below can be found in the method `draw_networkx_nodes` . I added a line that computes node_chart in the event a subset of nodes is specified via the...

``` G1 = nx.MultiGraph() G1.add_nodes_from(nodes) G1.add_edges_from(edges) print(nx.info(G1)) ``` Name: Type: MultiGraph Number of nodes: 194 Number of edges: 222 Average degree: 2.2887 ``` nx.draw_spring(G1) pos = nx.spring_layout(G1) ``` This will...

In networkx >= 2.4, the `Graph.node` function has been deprecated in favour of `Graph.nodes` (see https://networkx.org/documentation/stable/release/release_2.4.html#deprecations). This means that when using versions of networkx greater or equal to 2.4, when...

Thanks for the great work! I would like to use nxa.draw_networkx_edges to draw edges with a clorbar, like the graph at https://stackoverflow.com/questions/22124793/colorbar-for-edges-in-networkx. However, I got the following error: ``` SchemaValidationError:...

a = pd.DataFrame([{'a': 1, 'c': 0}, {'a': 2, 'c': 2}, {'a': 3, 'c': 5}]) b = a b = b.loc[[0, 2]] b => a c 0 1 0 2 3...

> /usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/altair/utils/core.py:81: UserWarning: I don't know how to infer vegalite type from 'empty'. Defaulting to nominal. Maybe we should test as to whether or not there are edges or nodes...

I'm the creator of nxviz, and would love to see some of your code in our codebase! In particular, I'm looking for declarative ways of making CircosPlots, ArcPlots and others....

Addressing issue #13 Currently, when trying to convert a networkx multigraph, a ValueError is thrown. This is caused by to_pandas_edges, where the edge keys are added to the attributes. This...