Node * graph_get_node(Graph *g, unsigned int id)
Retrieve a node.
Node * destination
Pointer to destination node of this edge.
void graph_free(Graph *g)
Free memory used by nodes and edges.
Representation of an edge.
struct edge * node_get_edges(Node *n)
Get array of outgoing edges.
struct node Node
Node is an opaque type.
unsigned int node_get_id(Node *n)
Get id of a node.
bool graph_insert_edge(Graph *g, unsigned int source, unsigned int dest, int mindelay)
Insert an edge into the graph.
int mindelay
Minimum delay of this edge.
Graph * graph_new(void)
Create a new graph.
unsigned int node_get_distance(Node *n)
Get distance of this node from starting node.
bool graph_insert_node(Graph *g, unsigned int id)
Insert node into the graph.
unsigned short node_get_n_outgoing(Node *n)
Get number of outgoing edges from a node.
Node * node_get_previous(Node *n)
Get node on (already found) shortest path from which queried node was visited.
struct graph Graph
Graph is an opaque type.