TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
Python
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General Python Programming
Lounge
Jobs
Forum
Beginners
How to define such objects?
How to define such objects?
May 9, 2011 at 7:54am
May 9, 2011 at 7:54am UTC
akilguo
(43)
I need a way to represent Adjacency List with Python containers, such as vector , list, i know the c implementation, but Python implementation should be different and clear. Can i define the structure like this?
vector< list<
int
[2]> > obj;
May 9, 2011 at 8:28am
May 9, 2011 at 8:28am UTC
ankitsingh12
(22)
Yes, you can definitely define this type of structure...
May 9, 2011 at 12:45pm
May 9, 2011 at 12:45pm UTC
akilguo
(43)
Is that a good idea?
Is it better than the pointer-based structure?
Last edited on
May 9, 2011 at 12:45pm
May 9, 2011 at 12:45pm UTC
Topic archived. No new replies allowed.