graph_analysis
src
io
GexfReader.hpp
Go to the documentation of this file.
1
#ifndef GRAPH_ANALYSIS_IO_GEXF_READER_HPP
2
#define GRAPH_ANALYSIS_IO_GEXF_READER_HPP
3
4
#include <map>
5
#include <libgexf/gexf.h>
6
#include "../GraphIO.hpp"
7
#include "../Vertex.hpp"
8
#include "../Edge.hpp"
9
10
namespace
graph_analysis
{
11
namespace
io {
12
19
class
GexfReader
:
public
Reader
20
{
21
typedef
std::map < libgexf::t_id, Vertex::Ptr > VertexMap;
22
23
public
:
29
void
read
(
const
std::string& filename,
BaseGraph::Ptr
graph);
30
};
31
32
}
// end namespace io
33
}
// end namespace graph_analysis
34
#endif // GRAPH_ANALYSIS_IO_GEXF_READER_HPP
graph_analysis
Main namespace of the graph analysis library.
Definition:
BFS.cpp:3
graph_analysis::io::GexfReader::read
void read(const std::string &filename, BaseGraph::Ptr graph)
reads the graph from the given file and stores it to the provided graph argument
Definition:
GexfReader.cpp:12
graph_analysis::BaseGraph::Ptr
shared_ptr< BaseGraph > Ptr
Definition:
BaseGraph.hpp:34
graph_analysis::io::GexfReader
Imports a base graph from a given GEXF file.
Definition:
GexfReader.hpp:19
graph_analysis::io::Reader
Interface for Reader implementation that perform custom graph deserialization.
Definition:
GraphIO.hpp:56
Generated by
1.8.17