igraph and usage of Read(klass, f, format=None, *args, **kwds) question

2012-04-04 Thread ishwar . rattan
I have a file with with adjacency list of an undirected graph one vertex list 
per input line [0 1, 1 2 3, 2 1, 3 1] assume a newline for commas (file is 
named adjl.txt). Can some one give an example of loading this into graph of 4 
vertices?

import igraph
g = igraph.Graph()
g.Read("adjl.txt", "edgelist")
   does not work..

Help will be appreciated.
-ishwar
-- 
http://mail.python.org/mailman/listinfo/python-list


OT: Ideas for a first course using Python

2008-02-21 Thread ishwar . rattan
Sorry to butt in but I am shopping for some ideas.

I am interested in putting together a programming course for non-
programmers (outside the computer science domain) based on Pyhton. I
envision the course
similar to ones that used old-Basic interpreter.

Any one out there has such a course (already designed) or has some
experience
of such a course?

What could be a list of topics to be addressed in such a course
(domain), other
than the language syntax?

-ishwar
-- 
http://mail.python.org/mailman/listinfo/python-list