So something like this:
a.gdf:
nodedef>name, v1 BOOLEAN
a,1
b,1
c,1
edgedef> node1,node2,weight
a,b,1
a,c,1
b,c,1
b.gdf:
nodedef>name, v2 BOOLEAN
a,1
c,1
edgedef> node1,node2,weight
a,c,1
c.gdf:
nodedef>name, v3 BOOLEAN
b,1
c,1
edgedef> node1,node2,weight
b,c,1
And if I load them with makeFromGDF (fileName) I get all the nodes at
the end.
So I run a loop to remove nodes that are not visible in a current
state (lets say for b.gdf):
for n in g.edges:
if (n.v2 == 1):
n.visible = 1;
else:
remove(n);
and I do the same for every state/file.
if I say
else:
n.visible = 0
than nodes are not visible, but effect the layout and
edges remain visible in every next state once they appear
if I say something like
else:
removeCompletely(n)
than the nodes can not be readded.
Sorry for the length, but I hope I clarified my problem a bit
and there is a simple solution.
Thanks again,
Ilija
On May 18, 6:02 pm, "Eytan Adar" <
eytana...@gmail.com> wrote:
> Just to make sure I understand... you have 3 states
>
> file 1 says: a,b,c
>
> file 2 says: a,b
> file 3 says: b,c
>
> I'm trying to construct the simplest thing that gives this error.
>
> -Eytan
>
> On Sun, May 18, 2008 at 5:52 AM, Ilija <il...@eccf.su.ac.yu> wrote:
>
> > Hi,
> > I tried with the new file and it still does not work. Same error
> > message *NameError: Immutable variable b
> > already defined in namespace*?
> > Any ideas?
> > Thanks, Ilija
>
> > On May 16, 10:48 pm, "Eytan Adar" <
eytana...@gmail.com> wrote:
> > > I think there's a change in the GDF reader that might be a fix for this
> > > (from February)... it's checked in, but not released... Can you
> > downloadhttp://
graphexploration.cond.org/guess.jarandoverwrite your