}
}
-static vtx_data *makeGraph(topview * tv, int *nedges)
+static v_data *makeGraph(topview * tv, int *nedges)
{
int i;
int ne = tv->Edgecount; /* upper bound */
int nv = tv->Nodecount;
- vtx_data *graph = N_NEW(nv, vtx_data);
+ v_data *graph = N_NEW(nv, v_data);
int *edges = N_NEW(2 * ne + nv, int); /* reserve space for self loops */
float *ewgts = N_NEW(2 * ne + nv, float);
Agnode_t *np;
* double* y_coords; // initial y coordinates
* focus_t* fs;
* int ne;
- * vtx_data* graph = makeGraph (topview*, &ne);
+ * v_data* graph = makeGraph (topview*, &ne);
* hierarchy = makeHier(topview->NodeCount, ne, graph, x_coords, y_coords);
* freeGraph (graph);
* fs = initFocus (topview->Nodecount); // create focus set
ex_vtx_data *gg;
topview_node *np;
- vtx_data *graph = makeGraph(t, &ne);
+ v_data *graph = makeGraph(t, &ne);
t->animate=0; //turn the animation off
for (i = 0, np = t->Nodes; i < t->Nodecount; i++, np++) {
for (level = 0; level < hp->nlevels; level++) {
for (v = 0; v < hp->nvtxs[level]; v++) {
ex_vtx_data *gg = hp->geom_graphs[level];
- vtx_data *g = hp->graphs[level];
+ v_data *g = hp->graphs[level];
if (gg[v].active_level == level) {
double x0,y0;
get_temp_coords(t,level,v,&x0,&y0);
for (level = 0; level < hp->nlevels; level++) {
for (v = 0; v < hp->nvtxs[level]; v++) {
ex_vtx_data *gg = hp->geom_graphs[level];
- vtx_data *g = hp->graphs[level];
+ v_data *g = hp->graphs[level];
if (gg[v].active_level == level) {
double x0,y0;
get_temp_coords(t,level,v,&x0,&y0);
{
Hierarchy *hp = t->h;
ex_vtx_data *gg = hp->geom_graphs[level];
- vtx_data *g = hp->graphs[level];
+ v_data *g = hp->graphs[level];
/*TEMP*/t->animate=0;/*TEMP*/
if (!t->animate)
{
#include "topviewdata.h"
#include <memory.h>
+static int validate_group_node(tv_node * TV_Node, char *regex_string)
+{
+ btree_node *n = 0;
+// n=tree_from_filter_string("([IP=\"^10.*\",min=\"0\",max=\"0\"])");
+ int valid = 0;
+ n = tree_from_filter_string(regex_string);
+ valid = evaluate_expresions(TV_Node, n);
+// delete_node(n);
+ return valid;
+}
+
int prepare_nodes_for_groups(topview * t, topviewdata * td, int groupindex)
{
GdkColor color;