libgexf::GEXF Class Reference

GEXF class, just a container. More...

#include <gexf.h>

List of all members.

Public Member Functions

 GEXF (const GEXF &orig)
 Copy constructor.
libgexf::UndirectedGraphgetUndirectedGraph ()
 Get an undirected graph instance.
libgexf::DirectedGraphgetDirectedGraph ()
 Get a directed graph instance.
libgexf::DatagetData ()
 Get associated data instance.
libgexf::MetaDatagetMetaData ()
 Get associated meta data instance.
void setGraphType (libgexf::t_graph t)
 Change the type of graph.
libgexf::t_graph getGraphType ()
 Get the type of graph.
void initGraphMode (const std::string &mode)
 Initialize the graph mode.
std::string getGraphMode ()
 Get the graph mode.
bool checkIntegrity ()
 Check the data correctness.

Public Attributes

libgexf::Graph _graph
libgexf::t_graph _type
std::string _mode
libgexf::Data _data
libgexf::MetaData _meta

Friends

class MemoryValidator
std::ostream & operator<< (std::ostream &os, const GEXF &o)


Detailed Description

GEXF class, just a container.


Member Function Documentation

UndirectedGraph & libgexf::GEXF::getUndirectedGraph (  ) 

Get an undirected graph instance.

Returns:
Undirected graph

DirectedGraph & libgexf::GEXF::getDirectedGraph (  ) 

Get a directed graph instance.

Returns:
Directed graph

Data & libgexf::GEXF::getData (  ) 

Get associated data instance.

Returns:
graph data

MetaData & libgexf::GEXF::getMetaData (  ) 

Get associated meta data instance.

Returns:
graph meta data

void libgexf::GEXF::setGraphType ( libgexf::t_graph  t  ) 

Change the type of graph.

Parameters:
t : Type of graph (directed, undirected or mixed)

t_graph libgexf::GEXF::getGraphType (  ) 

Get the type of graph.

Returns:
Type of graph (directed, undirected or mixed)

void libgexf::GEXF::initGraphMode ( const std::string &  mode  ) 

Initialize the graph mode.

Parameters:
mode : Mode of graph (static or dynamic)

std::string libgexf::GEXF::getGraphMode (  ) 

Get the graph mode.

Returns:
Mode of graph (static or dynamic)

bool libgexf::GEXF::checkIntegrity (  ) 

Check the data correctness.

  • verify if each node has a label
  • verify if each attvalue has a value or a defaultvalue
Returns:
true if it is ok, false otherwise.


Friends And Related Function Documentation

friend class MemoryValidator [friend]


Member Data Documentation

Topology structure

libgexf::t_graph libgexf::GEXF::_type

Default edge type

std::string libgexf::GEXF::_mode

Graph mode

Associated data and attributes on nodes and edges

Associated meta data


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

Generated on Fri Dec 11 00:33:33 2009 for libgexf by  doxygen 1.5.6