Tulip
4.9.0
Better Visualization Through Research
|
#include <TLPBExportImport.h>
Inherits ExportModule.
Public Member Functions | |
PLUGININFORMATION("TLPB Export","David Auber, Patrick Mary","13/07/2012","Exports a graph in a file using the Tulip binary format","1.1","File") std | TLPBExport (const tlp::PluginContext *context) |
bool | exportGraph (std::ostream &) |
tlp::edge | getEdge (tlp::edge e) |
tlp::node | getNode (tlp::node n) |
void | getSubGraphs (tlp::Graph *, std::vector< tlp::Graph * > &) |
std::string | icon () const |
void | writeAttributes (std::ostream &, tlp::Graph *) |
Public Attributes | |
tlp::MutableContainer< tlp::edge > | edgeIndex |
tlp::MutableContainer< tlp::node > | nodeIndex |
Export plugin for TLPB format.
The plugins below export/import a Tulip graph using the following binary format: format header = <magic_number, major, minor> (uint16 + uint8 +uint8) nb_nodes = uint32 nb_edges = uint32 edges = nb_edges * <source, target> (uint32+uint32) nb_subgraphs = uint32 subgraphs = nb_subgraphs * <subgraph_id, parent_graph_id, nodes_desc, edges_desc> nodes_desc = nb_nodes_intervals * <first_node, last_node> edges_desc = nb_edges_intervals *<first_edge, last_edge> nb_properties = uint32 properties = <prop_name, graph_id, type, default_node_val, default_edge_val, nodes_val, edges_val> prop_name = length + utf8 text graph_id = uint32 type = length + utf8 text default_node_val = type dependant (method readb) default_edge_val = type dependant (method readb) nb_nodes_val = uint32 nodes_val = nb_nodes_val * <node, node_val> (uint32 + type dependant) nb_edges_val = uint32 edges_val = nb_edges_val * <edge, edge_val> (uint32 + type dependant) graph_attributes = (nb_subgraphs + 1) * <graph_id, graph_attributes_list>*
This plugin saves a Tulip graph using a binary format
Definition at line 69 of file TLPBExportImport.h.