Sorry, that wasn't clear but here is the content of drug-drug-4viz.csv

source,target
allegra, allegra
mylanta, mylanta

That's it.

Thanks!

-Ahmed




On Wed, Nov 20, 2013 at 1:28 PM, Gábor Csárdi <[email protected]>wrote:

> 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
> <[email protected]> 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

Reply via email to