Thanks very much, Dr. Nepusz! It would have been impossible for me to catch that.
-Ahmed On Wed, Nov 20, 2013 at 2:37 PM, Tamás Nepusz <[email protected]> wrote: > You have a space in your file after the comma, which means that you will > create four nodes: “allegra”, “ allegra” (note the space), “mylanta” and “ > mylanta”. Remove the spaces after the commas in your input file. > > -- > T. > > On Wednesday, 20 November 2013 at 19:15, Ahmed Abdeen Hamed wrote: > > Sure, I am attaching the visualization outcome of the file that I sent in > my previous email. > > And here is the code: > > reader = csv.DictReader(open("drug-drug-4viz.csv"), dialect="excel") > g = igraph.Graph.DictList(vertices=None, edges=reader, directed=True) > layout = g.layout("kk") > g.vs["label"] = g.vs["name"] > plot(g, layout = layout, bbox = (1000, 1000), margin = 20) > > Thanks very much! > > -Ahmed > > > > On Wed, Nov 20, 2013 at 12:52 PM, Gábor Csárdi <[email protected]>wrote: > > We cannot tell you what you are doing wrong, until you show us what > you are doing. > > G. > > On Wed, Nov 20, 2013 at 12:49 PM, Ahmed Abdeen Hamed > <[email protected]> wrote: > > Hello friends, > > > > > > When visualizing a network like this: > > > > source,target > > allegra, allegra > > mylanta, mylanta > > > > > > I get 4 nodes: > > > > allegra---> allegra > > mylanta---> mylanta > > > > What I hope to see is two nodes (allegra, mylanta) and links to self. > > > > Is that possible? > > > > Thanks very much! > > > > -Ahmed > > > > > > _______________________________________________ > > igraph-help mailing list > > [email protected] > > https://lists.nongnu.org/mailman/listinfo/igraph-help > > > > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > > Attachments: > - drug-drug.jpg > > >
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
