den-run-ai / yapgvb

Automatically exported from code.google.com/p/yapgvb
0 stars 0 forks source link

Iterating over node's edges not possible #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following script raises a NotImplementedError:

import yapgvb

g = yapgvb.Graph()
n = g.add_node()

for edge in n.edges:
  print edge

1. would it possible to mark that attribute (n.edges) as not-yet-functional
in the documentation? 
2. is there an alternative way to iterate over all edges of a given node?

Btw. beside that it works perfectly fine on OS X. :) 

Cheers,
Reto

********************************************************************************
Function:  first_edge at
/Library/Python/2.5/site-packages/yapgvb-1.2.0-py2.5.egg/yapgvb/_yapgvb_py.py:29
6
Calling:   x = first(obj)

('/Library/Python/2.5/site-packages/yapgvb-1.2.0-py2.5.egg/yapgvb/__init__.py',
45, '_it')
NotImplementedError: 
    Args:
        <Node "rvndbkqkpbxoxlromhfgmqzqenadfmda"> (<class
'yapgvb._yapgvb_py.Node'>)
    No keywords.
Traceback (most recent call last):
  File "yapgvb-bug.py", line 7, in <module>
    for edge in n.edges:
  File
"/Library/Python/2.5/site-packages/yapgvb-1.2.0-py2.5.egg/yapgvb/__init__.py",
line 45, in _it
    x = first(obj)
  File
"/Library/Python/2.5/site-packages/yapgvb-1.2.0-py2.5.egg/yapgvb/_yapgvb_py.py",
line 59, in fc
    raise NotImplementedError("You are using the pure-Python experimental
backend.  A lot of things are not implemented yet.")
NotImplementedError: You are using the pure-Python experimental backend.  A
lot of things are not implemented yet.

Original issue reported on code.google.com by retoschu...@gmail.com on 14 Apr 2009 at 7:08

GoogleCodeExporter commented 9 years ago
Hm, I just realised that there's only the documentation for the 1.1.0 release 
in the
latest yapgvb tarball. Forget about point nr 1. 

Original comment by retoschu...@gmail.com on 14 Apr 2009 at 9:17

GoogleCodeExporter commented 9 years ago
fixed as of 1.2.3

Original comment by lonnie.p...@gmail.com on 14 Apr 2009 at 7:01