Hi,
I'm importing a dynamic graph using gexf import. One of the edge's attributes is a dynamic string, which stores some ids for each time step. Here is an example:
<attributes class="edge" mode="dynamic">
<attribute id="Ids" title="Ids" type="string"/>
</attributes>
...
<edge id="123" label="network link" source="11" target="12" weight="1.0">
<attvalues>
<attvalue for="Ids" value="[id_0_6]" start="0.0"/>
<attvalue for="Ids" value="[id_0_6, id_1_12]" start="1.0"/>
<attvalue for="Ids" value="[id_0_6, id_2_19]" start="2.0"/>
</attvalues>
</edge>
I want to color all edges, matching a given pattern, e.g. "id_0_6". The filter Attribute.Equal.Ids seems to be exactly what I was looking for. However, the filter does not work on every pattern. For example, using ".*id_0_6.*" will do the trick, whereas ".*id_1_12.*" will result in returning no edges. Maybe there is something wrong with my regex, but it seems that regex only checks for the first "entry" before the comma (of my id string array). Any suggestions?
Second question is, whether this filter is time aware or not, i.e. does the filter automatically only filter the graph valid for the given interval in the timeline.
Thanks
Filtering DynamicString Attribute
-
- Posts:1
- Joined:31 May 2012 14:18 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable