Tulip
4.6.0
Better Visualization Through Research
|
#include <TLPBExportImport.h>
Public Member Functions | |
TLPBExport (const tlp::PluginContext *context) | |
bool | exportGraph (std::ostream &) |
std::string | fileExtension () const |
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.
This file is part of Tulip (www.tulip-software.org)
Authors: David Auber and the Tulip development Team from LaBRI, University of Bordeaux
Tulip is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Tulip is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 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 88 of file TLPBExportImport.h.