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
You could produce a positions and layout in the interactive session and then pass the color attribute to the links in the returned visualized network. Here's an example of the stylized network's data structure: https://netwulf.readthedocs.io/en/latest/python_api/post_back.html
You could inject the color attribute into the entries in stylized_network['links'] before redrawing with matplotlib.
Hi,
When I create a graph from pandas as:
G = nx.from_pandas_edgelist(df, "node1", "node2", edge_attr=['weight', 'color'])
Properties are correctly set, e.g.:
('node1', 'node2', {'weight': 0.01, 'color': 'red'})
However, when running:
network, config = visualize(G, port=port)
the weight attribute is correctly visualized, but the color one is not (all edges are grey).
How can I get around this issue?
Thanks,
Davide
The text was updated successfully, but these errors were encountered: