1 #ifndef GRAPH_ANALYSIS_IO_GRAPHML_READER_HPP 2 #define GRAPH_ANALYSIS_IO_GRAPHML_READER_HPP 5 #include <libxml/parser.h> 6 #include <libxml/xpath.h> 7 #include "../GraphIO.hpp" 8 #include "../Vertex.hpp" 22 typedef std::map < std::string, Vertex::Ptr > VertexMap;
44 GraphMLNode
getNode(xmlNodePtr node, xmlXPathContextPtr context)
const;
45 GraphMLEdge
getEdge(xmlNodePtr node, xmlXPathContextPtr context)
const;
50 #endif // GRAPH_ANALYSIS_IO_GRAPHML_READER_HPP 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: GraphMLReader.cpp:179
Interface for Reader implementation that perform custom graph deserialization.
Definition: GraphIO.hpp:56
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
Imports a base graph from a given GRAPHML file.
Definition: GraphMLReader.hpp:20
GraphMLEdge getEdge(xmlNodePtr node, xmlXPathContextPtr context) const
Definition: GraphMLReader.cpp:93
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
GraphMLNode getNode(xmlNodePtr node, xmlXPathContextPtr context) const
Definition: GraphMLReader.cpp:13