igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] displaying unique nodes only no duplicates


From: Ahmed Abdeen Hamed
Subject: Re: [igraph] displaying unique nodes only no duplicates
Date: Wed, 20 Nov 2013 14:56:10 -0500

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 <address@hidden> 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 <address@hidden> 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
<address@hidden> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>

_______________________________________________
igraph-help mailing list

Attachments:
- drug-drug.jpg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]