graph_analysis
Public Member Functions | List of all members
graph_analysis::io::GraphMLWriter Class Reference

exports a given base graph to a given file in GRAPHML format More...

#include <GraphMLWriter.hpp>

Inheritance diagram for graph_analysis::io::GraphMLWriter:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::io::GraphMLWriter:
Collaboration graph
[legend]

Public Member Functions

void write (const std::string &filename, const BaseGraph &graph) const
 outputs the given graph to the given file More...
 
void write (const std::string &filename, const BaseGraph::Ptr &graph) const
 outputs the given graph to the given file More...
 
std::string generateKeyList (const std::set< std::string > &vertexTypes, const std::set< std::string > &edgeTypes, size_t indent) const
 
std::string generateNodeList (const BaseGraph::Ptr &graph, size_t indent, std::set< std::string > &vertexTypes) const
 
std::string generateEdgeList (const BaseGraph::Ptr &graph, size_t indent, std::set< std::string > &edgeTypes) const
 
- Public Member Functions inherited from graph_analysis::io::Writer
virtual ~Writer ()
 
void write (const std::string &filename, const BaseGraph &graph) const
 

Additional Inherited Members

- Public Types inherited from graph_analysis::io::Writer
typedef shared_ptr< Writer > Ptr
 

Detailed Description

exports a given base graph to a given file in GRAPHML format

Renders requested graph to GRAPHML standard format

Member Function Documentation

◆ generateEdgeList()

std::string graph_analysis::io::GraphMLWriter::generateEdgeList ( const BaseGraph::Ptr &  graph,
size_t  indent,
std::set< std::string > &  edgeTypes 
) const

◆ generateKeyList()

std::string graph_analysis::io::GraphMLWriter::generateKeyList ( const std::set< std::string > &  vertexTypes,
const std::set< std::string > &  edgeTypes,
size_t  indent 
) const

Create a list of nodes associated with a graph

◆ generateNodeList()

std::string graph_analysis::io::GraphMLWriter::generateNodeList ( const BaseGraph::Ptr &  graph,
size_t  indent,
std::set< std::string > &  vertexTypes 
) const

◆ write() [1/2]

void graph_analysis::io::GraphMLWriter::write ( const std::string &  filename,
const BaseGraph &  graph 
) const

outputs the given graph to the given file

Parameters
filenamerequested output filename
graphrequested graph to be printed

◆ write() [2/2]

void graph_analysis::io::GraphMLWriter::write ( const std::string &  filename,
const BaseGraph::Ptr &  graph 
) const
virtual

outputs the given graph to the given file

Parameters
filenamerequested output filename
graphsmart pointer to the requested graph to be printed

Reimplemented from graph_analysis::io::Writer.


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