Re: [Tutor] Multi Layered Graphs

2014-01-27 Thread Albert-Jan Roskam

--
On Sun, Jan 26, 2014 11:23 PM CET Ankit Arora wrote:

>I'm working on a project which involves network graphs. Is there a library
>that can help me do this:
>
>I want to create multi-layered graphs i.e. graphs which contain a set
>number of vertices but multiple 'layers' of edges i.e. same set of vertices
>representing two or more properties in the same data structure.
>
>One rather hacky solution can be to form a complete graph in igraph and
>deal with the layers as if they were igraph edge attributes, though when
>dealing with tens of thousands of vertices on a complete graph it will be
>inefficient.
>
>Any clue if something proper exists? If not, any more intelligent solutions
>using existing libraries such as igraph/networkx?

Maybe D3py, a Python wrapper for D3.js. No experience with it but it looks 
great.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Multi Layered Graphs

2014-01-27 Thread spir

On 01/26/2014 11:23 PM, Ankit Arora wrote:

I'm working on a project which involves network graphs. Is there a library
that can help me do this:

I want to create multi-layered graphs i.e. graphs which contain a set
number of vertices but multiple 'layers' of edges i.e. same set of vertices
representing two or more properties in the same data structure.

One rather hacky solution can be to form a complete graph in igraph and
deal with the layers as if they were igraph edge attributes, though when
dealing with tens of thousands of vertices on a complete graph it will be
inefficient.

Any clue if something proper exists? If not, any more intelligent solutions
using existing libraries such as igraph/networkx?


Just a personal point of view: I usually end up implementing custom graphs or 
trees because it is rather simple [*] and because of the variety of structures 
and features. (Maybe that's why there are no general purpose node/tree/graph 
libs, only highly specialised one, as for XML parsing.)


If you take this route and need help or advice on given points or features, we 
can probably be of some use.


Denis

[*] compared the overall app: if a graph is complex, then the app it is a 
component of is even more complex

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Multi Layered Graphs

2014-01-26 Thread Steven D'Aprano
On Mon, Jan 27, 2014 at 03:53:38AM +0530, Ankit Arora wrote:
> I'm working on a project which involves network graphs. Is there a library
> that can help me do this:
> 
> I want to create multi-layered graphs i.e. graphs which contain a set
> number of vertices but multiple 'layers' of edges i.e. same set of vertices
> representing two or more properties in the same data structure.

This may be a bit advanced for the "tutor" list, which is more aimed at 
learning the syntax and standard library. If nobody responds with an 
answer here, you might like to try asking on comp.lang.python, also 
available by email python-l...@python.org.

-- 
Steven

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Multi Layered Graphs

2014-01-26 Thread Ankit Arora
I'm working on a project which involves network graphs. Is there a library
that can help me do this:

I want to create multi-layered graphs i.e. graphs which contain a set
number of vertices but multiple 'layers' of edges i.e. same set of vertices
representing two or more properties in the same data structure.

One rather hacky solution can be to form a complete graph in igraph and
deal with the layers as if they were igraph edge attributes, though when
dealing with tens of thousands of vertices on a complete graph it will be
inefficient.

Any clue if something proper exists? If not, any more intelligent solutions
using existing libraries such as igraph/networkx?
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor