21 #ifndef OPAL_CARTO_BASE_GRAPH_H
22 #define OPAL_CARTO_BASE_GRAPH_H
32 #include "opal_config.h"
88 const char *node_type);
115 OPAL_DECLSPEC uint32_t
int opal_carto_base_get_nodes_distance_fn(opal_carto_graph_t *graph, opal_carto_base_node_t *reference_node, const char *node_type, opal_value_array_t *dist_array)
opal_carto_base_get_nodes_distance - returns the distance of all the nodes from the reference node...
Definition: carto_base_graph.c:287
The carto framework suplies an information of the the host structure and connection between the host ...
void opal_carto_base_graph_create_fn(opal_carto_graph_t **graph)
Create new carto graph.
Definition: carto_base_graph.c:158
uint32_t opal_carto_base_graph_spf_fn(opal_carto_graph_t *graph, opal_carto_base_node_t *node1, opal_carto_base_node_t *node2)
Find the shortest path between two nodes in the graph.
Definition: carto_base_graph.c:328
opal_carto_base_node_t * opal_carto_base_graph_find_node_fn(opal_carto_graph_t *graph, const char *node_name)
Find a node in the graph according to its name.
Definition: carto_base_graph.c:342
int opal_carto_base_connect_nodes_fn(opal_carto_graph_t *graph, opal_carto_base_node_t *start, opal_carto_base_node_t *end, uint32_t weight)
Connect two nodes by adding an edge to the graph.
Definition: carto_base_graph.c:222
A graph class.
Definition: opal_graph.h:165
void opal_carto_base_graph_add_node_fn(opal_carto_graph_t *graph, opal_carto_base_node_t *node)
Add a node to carto graph.
Definition: carto_base_graph.c:169
void opal_carto_base_free_graph_fn(opal_carto_graph_t *graph)
Free a carto graph.
Definition: carto_base_graph.c:189
int opal_carto_base_graph_get_host_graph_fn(opal_carto_graph_t **graph, const char *graph_type)
Get the host cartography graph.
Definition: carto_base_graph.c:374
Definition: opal_value_array.h:38
void opal_carto_base_duplicate_graph_fn(opal_carto_graph_t **destination, const opal_carto_graph_t *source, const char *node_type)
Duplicate a carto graph and reduce the new graph to contain nodes from a ceratin type(s) ...
Definition: carto_base_graph.c:247