FlashGraph-ng
A new frontier in large-scale graph analysis and data mining
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
fg::vertex_query Class Referenceabstract

Parallized query of the vertex state of all vertices in the graph. Each worker thread gets an instance of the query and the per-thread query results will be merged in the end. Inherit from this class to run queries in parallel. More...

#include <graph_engine.h>

Public Member Functions

virtual void run (graph_engine &, compute_vertex &v)=0
 This method is executed on vertices in parallel and contains any user defined code. More...
 
virtual void merge (graph_engine &graph, vertex_query::ptr q)=0
 All vertex results may be merged (not specially combined but any custom operation).
. This for instance can be used to aggregate (add, subtract, max etc.) a user defined data member for the class. More...
 
virtual ptr clone ()=0
 Implements a copy constructor. The graph engine uses this method to create an instance of this query for each thread. Used internally by graph engine as a generic ctor in lieu of using a templated class.
 

Detailed Description

Parallized query of the vertex state of all vertices in the graph. Each worker thread gets an instance of the query and the per-thread query results will be merged in the end. Inherit from this class to run queries in parallel.

Member Function Documentation

virtual void fg::vertex_query::merge ( graph_engine graph,
vertex_query::ptr  q 
)
pure virtual

All vertex results may be merged (not specially combined but any custom operation).
. This for instance can be used to aggregate (add, subtract, max etc.) a user defined data member for the class.

Parameters
graphThe graph engine you are concerned with.
qA pointer to the vertex query.
virtual void fg::vertex_query::run ( graph_engine ,
compute_vertex v 
)
pure virtual

This method is executed on vertices in parallel and contains any user defined code.

Type provides access to the object


The documentation for this class was generated from the following file: