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

Parses an inputfile with custom YAML/yml format to requested graph. More...

#include <YamlReader.hpp>

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

Public Member Functions

void read (const std::string &filename, BaseGraph::Ptr graph)
 reads the graph from the given file and stores it to the provided graph argument More...
 
- Public Member Functions inherited from graph_analysis::io::Reader
virtual ~Reader ()
 
void read (const std::string &filename, BaseGraph &graph)
 
void setUuid (const GraphElement::Ptr &element, const std::string &uuid) const
 

Additional Inherited Members

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

Detailed Description

Parses an inputfile with custom YAML/yml format to requested graph.

Parses custom yml that simply lists the nodes with their properties and then lists edges and their properties and then forms a base graph out of it

Member Function Documentation

◆ read()

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

reads the graph from the given file and stores it to the provided graph argument

Parameters
filenameprovided input filename
graphtarget graph to store the parsed graph

Reimplemented from graph_analysis::io::Reader.


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