Label components after filtering


I am trying to label the components of an undirected graph after filtering,
but it does not seem to work.

Here is a simple example:

attachment.html (2.93 KB)

initial_lattice.pdf (11.1 KB)

The comp.a always returns a pure unfiltered array, which corresponds to the
unfiltered graph. To get a filtered array, you have to do

   print comp.fa

which will return an array of length 16, instead of 25.

But note that this array will also only contain zeros. But this is correct,
as the graph has only one component, which is labeled zero.


2018-04-25 18:01 GMT-03:00 Tiago de Paula Peixoto <tiago(a)>:

attachment.html (1.47 KB)