diff --git a/lemon/lgf_writer.h b/lemon/lgf_writer.h --- a/lemon/lgf_writer.h +++ b/lemon/lgf_writer.h @@ -406,11 +406,11 @@ /// section to the stream. The output stream can be retrieved with /// the \c ostream() function, hence the second pass can append its /// output to the output of the first pass. - template + template class DigraphWriter { public: - typedef _Digraph Digraph; + typedef GR Digraph; TEMPLATE_DIGRAPH_TYPEDEFS(Digraph); private: @@ -974,11 +974,11 @@ /// '+' and \c '-'. The arcs are written into the \c \@attributes /// section as a \c '+' or a \c '-' prefix (depends on the direction /// of the arc) and the label of corresponding edge. - template + template class GraphWriter { public: - typedef _Graph Graph; + typedef GR Graph; TEMPLATE_GRAPH_TYPEDEFS(Graph); private: @@ -1073,15 +1073,15 @@ private: - template - friend GraphWriter graphWriter(const GR& graph, - std::ostream& os); - template - friend GraphWriter graphWriter(const GR& graph, - const std::string& fn); - template - friend GraphWriter graphWriter(const GR& graph, - const char *fn); + template + friend GraphWriter graphWriter(const Graph& graph, + std::ostream& os); + template + friend GraphWriter graphWriter(const Graph& graph, + const std::string& fn); + template + friend GraphWriter graphWriter(const Graph& graph, + const char *fn); GraphWriter(GraphWriter& other) : _os(other._os), local_os(other.local_os), _graph(other._graph),