🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.c++.leda
2 messages
2 total messages Started by Soha Hassoun Fri, 09 Feb 1996 08:26
Modifying int value in v->data[0] in GRAPH
#176
Author: 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
Re: Modifying int value in v->data[0] in GRAPH
#174
Author: Stefan Naeher
Date: Mon, 12 Feb 1996 08:19
19 lines
960 bytes
In article <DMI23K.4Io@beaver.cs.washington.edu> soha@cs.washington.edu (Soha Hassoun) writes:
>
>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?
>


GRAPH<my_node_info,my_edge_info> G;
...
G[v].K = 17;


--


-------------------------------------------------------------------------------
Stefan N"aher                                      e-mail: stefan@mpi-sb.mpg.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads