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: Gábor Csárdi
Subject: Re: [igraph] displaying unique nodes only no duplicates
Date: Wed, 20 Nov 2013 13:28:29 -0500

We still cannot run this, because drug-drug-4viz.csv is missing. FYI. G.

On Wed, Nov 20, 2013 at 1:15 PM, Ahmed Abdeen Hamed
<address@hidden> 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
>> >
>
>



reply via email to

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