#include <Graph.hpp>
Inheritance diagram for Graph:
The Graph inherits the ConstGraph, and implements the IEditGraph interface. The only difference between the ConstGraph and the Graph classes is that the Graph's nodes and edges can be modified using public methods, whereas the ConstGraph's nodes and edges cannot be modified from outside.
Public Member Functions | |
Graph () | |
Empty constructor. | |
Graph (PropertyFacility *p) | |
Constructor. | |
Graph (const Graph &) | |
Copy constructor. | |
virtual | ~Graph () |
Destructor. | |
virtual Node | new_node (NodeID id="") |
Add a node to the graph. | |
virtual void | del_node (Node n) |
Delete a node from the graph and removes all edges adjacent to this node. | |
virtual Edge | new_edge (Node u, Node v, EdgeID id="") |
Add an edge to the graph. | |
virtual void | del_edge (Edge e) |
Delete an edge from the graph. | |
virtual void | del_edge (Node u, Node v) |
Delete a(ll) directed (u,v) edge(s) from the graph. | |
virtual void | add_nodes (int num, int start) |
Convenient method to add nodes to the graph. |
|
Empty constructor.
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Convenient method to add nodes to the graph. See ConstGraph::priv_add_nodes(num, start).
Reimplemented in ObservableGraph. |
|
Delete a(ll) directed (u,v) edge(s) from the graph. See ConstGraph::priv_del_edge(u, v).
Implements IEditGraph. Reimplemented in ObservableGraph. |
|
Delete an edge from the graph. See ConstGraph::priv_del_edge(e).
Implements IEditGraph. Reimplemented in ObservableGraph. |
|
Delete a node from the graph and removes all edges adjacent to this node. See ConstGraph::priv_del_node(n).
Implements IEditGraph. Reimplemented in ObservableGraph. |
|
Add an edge to the graph. See ConstGraph::priv_new_edge(u, v, id).
Implements IEditGraph. Reimplemented in ObservableGraph. |
|
Add a node to the graph. See ConstGraph::priv_new_node(id).
Implements IEditGraph. Reimplemented in ObservableGraph. |