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

Imports a base graph from a given GRAPHML file. More...

#include <GraphMLReader.hpp>

Inheritance diagram for graph_analysis::io::GraphMLReader:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::io::GraphMLReader:
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...
 
GraphMLNode getNode (xmlNodePtr node, xmlXPathContextPtr context) const
 
GraphMLEdge getEdge (xmlNodePtr node, xmlXPathContextPtr context) const
 
- 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

Imports a base graph from a given GRAPHML file.

Parses an input gexf file to the requested target graph (forms a base graph)

Member Function Documentation

◆ getEdge()

GraphMLReader::GraphMLEdge graph_analysis::io::GraphMLReader::getEdge ( xmlNodePtr  node,
xmlXPathContextPtr  context 
) const

◆ getNode()

GraphMLReader::GraphMLNode graph_analysis::io::GraphMLReader::getNode ( xmlNodePtr  node,
xmlXPathContextPtr  context 
) const

◆ read()

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