|
From: | Tamás Nepusz |
Subject: | Re: [igraph] displaying unique nodes only no duplicates |
Date: | Wed, 20 Nov 2013 20:37:17 +0100 |
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!-AhmedOn 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
[Prev in Thread] | Current Thread | [Next in Thread] |