Standard graph API?

Magnus Lie Hetland mlh at
Mon Aug 23 22:49:09 CEST 2004

In article <mailman.2228.1093282813.5135.python-list at>,
Robert Brewer wrote:
>> Is there any interest in a (hypothetical) standard graph API (with
>> 'graph' meaning a network, consisting of nodes and edges)?
>1) Yes!


>2) Only if it's in C.

That would be up to the implementer. I'm only talking about defining
an API -- not the implementation. (Cf. the DB-API.)

>3) It would have to accept arbitrary objects. No "make your class a
>subclass of GraphNode" garbage.

Of course. Signature-based polymorphism and protocols all the way :)

Magnus Lie Hetland     "Canned Bread: The greatest thing since sliced      bread!" [from a can in Spongebob Squarepants]

More information about the Python-list mailing list