Revision d5b7a27f custompackages/graph-parser/src/graph_manager.h

View differences:

custompackages/graph-parser/src/graph_manager.h
15 15
    typedef std::map<std::string, Vertex> NameVertexMap;
16 16

  
17 17
    // CONSTRUCTOR
18
    GraphManager(); // constructor
18
    GraphManager(bool weighted_graph=true); // constructor
19 19
    GraphManager(const GraphManager& other); // copy constructor
20
    GraphManager& operator=(GraphManager& rhs); // assignment operator
20
    GraphManager& operator=(const GraphManager& rhs); // assignment operator
21 21
    // check out more here: http://www.cplusplus.com/articles/y8hv0pDG/
22 22

  
23 23
    // GETTERS
24 24
    const VertexIndexPMap& v_index_pmap() const;
25 25
    const EdgeIndexPMap& e_index_pmap() const;
26 26
    NameToIntMap const& v_id_index_map() const;
27
    bool weighted_graph() const;
27 28

  
28 29
    // UPDATE GRAPH
29 30
    void AddEdge(VertexProperties vp1, VertexProperties vp2, EdgeProperties ep);
......
54 55
    void update_e_index_pmap(Edge new_edge);
55 56

  
56 57
    // VARIABLES
58
    bool weighted_graph_;
59

  
57 60
    NameVertexMap v_id_vertex_map_;
58 61
    NameToIntMap v_id_index_map_;
59 62

  

Also available in: Unified diff