COIN-OR::LEMON - Graph Library

Opened 7 years ago

Last modified 15 months ago

#399 new enhancement

Missing getter and streaming operator for Node/Arc id

Reported by: tobi_connect Owned by: alpar
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 7 years ago by alpar

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 5 years ago by alpar

  • Milestone changed from LEMON 1.3 release to LEMON 1.4 release

comment:3 Changed 15 months ago by alpar

  • Milestone changed from LEMON 1.4 release to LEMON 1.5 release
Note: See TracTickets for help on using tickets.