#include <directedgraph.h>
Public Member Functions | |
DirectedGraph (const DirectedGraph &orig) | |
Copy constructor. | |
void | removeInEdges (const libgexf::t_id target_id) |
Remove incoming edges from a node. | |
void | removeOutEdges (const libgexf::t_id source_id) |
Remove outgoing edges from a node. | |
std::vector< libgexf::t_id > | getInEdges (const libgexf::t_id node_id) const |
Get incoming edges from a node. | |
std::vector< libgexf::t_id > | getOutEdges (const libgexf::t_id node_id) const |
Get outgoing edges from a node. | |
std::vector< libgexf::t_id > | getSuccessors (const libgexf::t_id node_id) const |
Get node successors. | |
std::vector< libgexf::t_id > | getPredecessors (const libgexf::t_id node_id) const |
Get node predecessors. | |
unsigned int | getInDegree (const libgexf::t_id node_id) const |
Get indegree value. | |
unsigned int | getOutDegree (const libgexf::t_id node_id) const |
Get outdegree value. | |
bool | isSuccessor (const libgexf::t_id node_id, const libgexf::t_id successor_id) const |
Test a possible successor. | |
bool | isPredecessor (const libgexf::t_id node_id, const libgexf::t_id predecessor_id) const |
Test a possible predecessor. |
void libgexf::DirectedGraph::removeInEdges | ( | const libgexf::t_id | target_id | ) |
Remove incoming edges from a node.
target_id | : node ID |
void libgexf::DirectedGraph::removeOutEdges | ( | const libgexf::t_id | source_id | ) |
Remove outgoing edges from a node.
source_id | : node ID |
std::vector< t_id > libgexf::DirectedGraph::getInEdges | ( | const libgexf::t_id | node_id | ) | const |
Get incoming edges from a node.
node_id | : node ID |
std::vector< t_id > libgexf::DirectedGraph::getOutEdges | ( | const libgexf::t_id | node_id | ) | const |
Get outgoing edges from a node.
node_id | : node ID |
std::vector< t_id > libgexf::DirectedGraph::getSuccessors | ( | const libgexf::t_id | node_id | ) | const |
Get node successors.
node_id | : node ID |
std::vector< t_id > libgexf::DirectedGraph::getPredecessors | ( | const libgexf::t_id | node_id | ) | const |
Get node predecessors.
node_id | : node ID |
unsigned int libgexf::DirectedGraph::getInDegree | ( | const libgexf::t_id | node_id | ) | const |
Get indegree value.
node_id | : node ID |
unsigned int libgexf::DirectedGraph::getOutDegree | ( | const libgexf::t_id | node_id | ) | const |
Get outdegree value.
node_id | : node ID |
bool libgexf::DirectedGraph::isSuccessor | ( | const libgexf::t_id | node_id, | |
const libgexf::t_id | successor_id | |||
) | const |
Test a possible successor.
Check if the successor_id is a successor of the node node_id.
node_id | : node ID | |
successor_id | : node ID of the tested successor |
bool libgexf::DirectedGraph::isPredecessor | ( | const libgexf::t_id | node_id, | |
const libgexf::t_id | predecessor_id | |||
) | const |
Test a possible predecessor.
Check if the predecessor_id is a predecessor of the node node_id.
node_id | : node ID | |
predecessor_id | : node ID of the tested predecessor |