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

Custom yml graph exporter. More...

#include <YamlWriter.hpp>

Inheritance diagram for graph_analysis::io::YamlWriter:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::io::YamlWriter:
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...
 
- 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

Custom yml graph exporter.

Exports requested graph to custom YAML/yml format (i.e. custom yml that simply lists the nodes with their properties and then lists edges and their properties)

Member Function Documentation

◆ write() [1/2]

void graph_analysis::io::YamlWriter::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::YamlWriter::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: