[Top][All Lists]

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

Re: [igraph] Better layout output in igraph

From: Håvard Wahl Kongsgård
Subject: Re: [igraph] Better layout output in igraph
Date: Fri, 19 Aug 2011 13:48:40 +0200

Hi, have you now added support for curved edges to the trunk?


On Wed, Aug 10, 2011 at 12:50 PM, Tamas Nepusz <address@hidden> wrote:
>> Error: Exceeded density grid with x_grid = 491 and y_grid =
>> 2147483638.  Program stopped.
> This error message is from the DrL layout algorithm. DrL is a third-party
> layout algorithm that has been integrated into igraph, and it was originally
> distributed as a standalone application, so there are places where it simply
> aborts the application instead of returning an error code. If you have a
> graph with which this bug is reproducible in a deterministic manner, please
> send it to me so I can check what's wrong with it and why the DrL algorithm
> fails. Any other layout algorithm works fine as you already noted it in your
> other email.
>>> curvature of the edge. The Python interface in 0.6 will support custom edge
>>> drawer classes, so you would be able to plug in your own edge drawer there.
>> Is this function available in the trunk?
> The custon edge drawer functionality is available, but there is no edge
> drawer yet which supports curved edges. You can check the source code of
> igraph.drawing.edge.ArrowEdgeDrawer and .AbstractEdgeDrawer to get a rough
> idea of how it works. If you need curved edges, you can implement it as a
> subclass of ArrowEdgeDrawer or AbstractEdgeDrawer. Custom edge drawers in
> igraph 0.6 can be used like this:
> from igraph.drawing.edge import TaperedEdgeDrawer
> from igraph.drawing.edge import DefaultGraphDrawer
> def my_graph_drawer_factory(*args, **kwds):
>    kwds["edge_drawer_factory"] = TaperedEdgeDrawer
>    return DefaultGraphDrawer(*args, **kwds)
> plot(graph, drawer_factory=my_graph_drawer_factory)
> The above code will give you tapered edges in directed networks where each
> edge is essentially a narrow triangle pointing towards its target. Make sure
> you have the latest revision as the drawer_factory=... keyword argument has
> just been added to the supported keyword arguments of Graph.__plot__.
> In the long run, I plan to add the curved edge functionality to
> ArrowEdgeDrawer, similarly to the way it works with the R interface of
> igraph. Actually, I plan to do it this week, so if this is not urgent, it
> might be easier for you to wait a bit.
> Cheers,
> Tamas
> _______________________________________________
> 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]