[no subject]

2013-02-14 Thread Megha Agrawal
Hello All,

I am a newbie to python language. I need your help in implementation of
Binary tree in python. I have a count of nodes and I need to draw a binary
tree. Suppose if count is 5 then tree will look like
  1
 /   \
   /   \
  2 3
 / \
-- 
http://mail.python.org/mailman/listinfo/python-list


Binary tree implementation

2013-02-14 Thread Megha Agrawal
Hello All,

I am a newbie to python language. I need your help in implementation of
Binary tree in python. I have a count of nodes and I need to draw a binary
tree. Suppose if count is 5 then tree will look like
  1
 /   \
   /   \
  2 3
 /  \
/\

   4  5.

Does anybody have code for this? Or any hint?


PS: Sorry for previous mail !!

Thank you :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: CBT code in python

2013-02-19 Thread Megha Agrawal
Plsss help !!

On Tue, Feb 19, 2013 at 12:40 AM, Megha Agrawal wrote:

> Hi,
>
>
> Does anybody have code for Complete Binary tree for a given no of leaves??
>
>
> Thanks in advance!!
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: CBT code in python

2013-02-19 Thread Megha Agrawal
I am not getting my answer thats why I am asking.

On Tue, Feb 19, 2013 at 9:10 PM, Mark Lawrence wrote:

> On 19/02/2013 15:27, Megha Agrawal wrote:
>
>> Plsss help !!
>>
>> On Tue, Feb 19, 2013 at 12:40 AM, Megha Agrawal > <mailto:me...@greybatter.com>> wrote:
>>
>> Hi,
>>
>> Does anybody have code for Complete Binary tree for a given no of
>> leaves??
>>
>> Thanks in advance!!
>>
>>
> Search engines are available to get your answer.  Why not use one before
> posting your question?
>
> --
> Cheers.
>
> Mark Lawrence
>
> --
> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Error in "Import gv " module

2013-04-22 Thread Megha Agrawal
https://code.google.com/p/python-graph/wiki/Example

When I am trying to run the code to draw a graph, given on above link, I am
getting following error:

ImportError: No module named gv

What can be the reasons?



Thank you!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error in "Import gv " module

2013-04-22 Thread Megha Agrawal
yes, I did. They said, gv module doesn't exist for windows.


On Mon, Apr 22, 2013 at 5:56 PM, Andreas Perstinger wrote:

> Please avoid top posting and answer to the list.
>
>
> On 22.04.2013 12:38, Megha Agrawal wrote:
>
>> Widows 7, and i have pygraphviz library in python27-> lib->
>> site-package folder.
>>
>
> Sorry don't know much about Windows.
>
> Have you read through all the issues involving "import gv" errors?:
> https://code.google.com/p/**python-graph/issues/list?can=**
> 1&q=import+gv&colspec=ID+Type+**Status+Priority+Milestone+**
> Owner+Summary&cells=tiles<https://code.google.com/p/python-graph/issues/list?can=1&q=import+gv&colspec=ID+Type+Status+Priority+Milestone+Owner+Summary&cells=tiles>
>
>
> Bye, Andreas
> --
> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>
-- 
http://mail.python.org/mailman/listinfo/python-list