FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
graph.h File Reference
+ Include dependency graph for graph.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  graph_link_t
 
struct  graph_dir_t
 
struct  graph_node_t
 
struct  graph_t
 

Functions

static void graph_dir_free (graph_dir_t *d)
 
static graph_link_tgraph_dir_get_link_to_node (graph_dir_t *d, u32 node_index)
 
static uword graph_dir_add_link (graph_dir_t *d, u32 node_index, u32 distance)
 
static void graph_dir_del_link (graph_dir_t *d, u32 node_index)
 
u32 graph_set_link (graph_t *g, u32 src, u32 dst, u32 distance)
 
static void graph_set_bidirectional_link (graph_t *g, u32 src, u32 dst, u32 distance)
 
void graph_del_link (graph_t *g, u32 src, u32 dst)
 
uword graph_del_node (graph_t *g, u32 src)
 

Variables

unformat_function_t unformat_graph
 
format_function_t format_graph
 
format_function_t format_graph_node
 

Function Documentation

◆ graph_del_link()

void graph_del_link ( graph_t g,
u32  src,
u32  dst 
)

Definition at line 67 of file graph.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ graph_del_node()

uword graph_del_node ( graph_t g,
u32  src 
)

Definition at line 80 of file graph.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ graph_dir_add_link()

static uword graph_dir_add_link ( graph_dir_t d,
u32  node_index,
u32  distance 
)
inlinestatic

Definition at line 60 of file graph.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ graph_dir_del_link()

static void graph_dir_del_link ( graph_dir_t d,
u32  node_index 
)
inlinestatic

Definition at line 72 of file graph.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ graph_dir_free()

static void graph_dir_free ( graph_dir_t d)
inlinestatic

Definition at line 46 of file graph.h.

+ Here is the caller graph for this function:

◆ graph_dir_get_link_to_node()

static graph_link_t* graph_dir_get_link_to_node ( graph_dir_t d,
u32  node_index 
)
inlinestatic

Definition at line 53 of file graph.h.

+ Here is the caller graph for this function:

◆ graph_set_bidirectional_link()

static void graph_set_bidirectional_link ( graph_t g,
u32  src,
u32  dst,
u32  distance 
)
inlinestatic

Definition at line 106 of file graph.h.

+ Here is the call graph for this function:

◆ graph_set_link()

u32 graph_set_link ( graph_t g,
u32  src,
u32  dst,
u32  distance 
)

Definition at line 19 of file graph.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ format_graph

format_function_t format_graph

Definition at line 116 of file graph.h.

◆ format_graph_node

format_function_t format_graph_node

Definition at line 117 of file graph.h.

◆ unformat_graph

unformat_function_t unformat_graph

Definition at line 115 of file graph.h.