🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++.leda
Article #176

Modifying int value in v->data[0] in GRAPH

#176
From: Soha Hassoun
Date: Fri, 09 Feb 1996 08:26
19 lines
1132 bytes
Hi,
I am new to LEDA and to C++.   I am running the  LEDA-R-3.3 package.

I am wondering if there is some supported way of modifying
an integer value that is part of the node info (what v->data[0] points to).

I have a GRAPH<my_node_info, my_edge_info> G.  After I finish
constructing the graph G, I would like to change the value of an
integer K that is a member of the class my_node_info.
Is there support for doing this?

I can't use a node_map or node_array because I would like to use the
sort_node() function based on the modified value of K.

Help would be greatly appreciated.
Thanks.

Soha
Technical Details
Message-ID: <DMI23K.4Io@beaver.cs.washington.edu>
Path: arc1-ca.pugleaf.net!uhog.mit.edu!uw-beaver!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.c++.leda
Path: arc1-ca.pugleaf.net!uhog.mit.edu!uw-beaver!news
From: soha@cs.washington.edu (Soha Hassoun)
Subject: Modifying int value in v->data[0] in GRAPH
Keywords: GRAPH data[0]
Sender: news@beaver.cs.washington.edu (USENET News System)
Organization: Computer Science & Engineering, U. of Washington, Seattle
Message-ID: <DMI23K.4Io@beaver.cs.washington.edu>
Summarry: Modifying int value in v->data[0] in GRAPH
X-Nntp-Posting-Host: edison.cs.washington.edu
Date: Fri, 9 Feb 1996 08:26:08 GMT