COIN-OR::LEMON - Graph Library

Opened 14 years ago

Last modified 8 years ago

#399 new enhancement

Missing getter and streaming operator for Node/Arc id

Reported by: tobi_connect Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.5 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

please implement a getter and streaming operator for the id field of the Node and Arc class. This would be very helpful. Always have to use the graph class is very inconvenient and sometimes not even possible. thx

Change History (3)

comment:1 in reply to:  description Changed 14 years ago by Alpar Juttner

Replying to tobi_connect:

please implement a getter and streaming operator for the id field of the Node and Arc class. This would be very helpful. Always have to use the graph class is very inconvenient and sometimes not even possible. thx

As far as I remember, it is intentional that these kind of operations are not part of the graph concept (we cannot assume that Node of each graph type will "know" its id).

This doesn't mean however that certain graph implementations (such as ListGraph or SmartGraph) can not provide this feature.

So, a patch implementing it is very welcome.

comment:2 Changed 12 years ago by Alpar Juttner

Milestone: LEMON 1.3 releaseLEMON 1.4 release

comment:3 Changed 8 years ago by Alpar Juttner

Milestone: LEMON 1.4 releaseLEMON 1.5 release
Note: See TracTickets for help on using tickets.