3

my project's aim is to generate a network diagram, I've made a program that creates objects as swicth and nodes in python then it generates a gexf file and my question is :

Can everybody tell me if he knows a way that allow us to choose a node image by using gexf, networkx or other tools.

Thank you so much

Benn-x
  • 37
  • 7
  • networkX supports adding images as an attribute for the node e.g. `G =nx.Graph() G.add_edge(0,1, image= my_img)` – EdChum Feb 27 '14 at 11:10

1 Answers1

2

NetworkX supports adding any form of data as attributes for a node such as an image:

G=nx.Graph() 
G.add_edge(0,1, image=my_img)

Essentially everything is stored as a dictionary underneath.

jaggi
  • 357
  • 1
  • 4
  • 17
EdChum
  • 376,765
  • 198
  • 813
  • 562