![]() |
smntc
an in-memory multimodal graph database
|
Include dependency graph for Graph.c:Go to the source code of this file.
Data Structures | |
| struct | Graph |
Functions | |
| struct Graph * | Graph_construct (unsigned int length, int *error) |
| It constructs a graph storage. | |
| struct Graph * | Graph_destruct (struct Graph *this) |
| It destructs a graph storage. | |
| unsigned int | Graph_addVertex (struct Graph *this, int *error) |
| It adds a vertex into a graph storage. | |
| int | Graph_hasEdge (const struct Graph *this, unsigned int source, unsigned int target, int *error) |
| It checks if a graph storage has a directed edge between two vertices. | |
| void | Graph_addEdge (struct Graph *this, unsigned int source, unsigned int target, int *error) |
| It adds a directed edge from a source vertex to a target vertex. | |
| unsigned int | Graph_countSources (const struct Graph *this, unsigned int target, int *error) |
| It counts all source vertices that have an edge leading to a particular target vertex. | |
| unsigned int | Graph_countTargets (const struct Graph *this, unsigned int source, int *error) |
| It counts all target vertices that have an edge leading from a particular source vertex. | |
| void | Graph_readSources (const struct Graph *this, unsigned int target, unsigned int length, unsigned int *sources, int *error) |
| It reads all source vertices that have an edge leading to a particular target vertex. | |
| void | Graph_readTargets (const struct Graph *this, unsigned int source, unsigned int length, unsigned int *targets, int *error) |
| It reads all target vertices that have an edge leading from a particular source vertex. | |
| unsigned int | Graph_readLastSource (const struct Graph *this, unsigned int target, int *error) |
| It reads the last source vertex of a target vertex, if it exists. | |
| unsigned int | Graph_readLastTarget (const struct Graph *this, unsigned int source, int *error) |
| It reads the last target vertex of a source vertex, if it exists. | |
| void | Graph_addCluster (struct Graph *this, unsigned int length, unsigned int *vertices, int *error) |
| void | Graph_readCluster (const struct Graph *this, unsigned int predecessor, unsigned int length, unsigned int *vertices, int *error) |
| unsigned int | Graph_protrudeCluster (struct Graph *this, unsigned int predecessor, int *error) |
| unsigned int | Graph_getLength (const struct Graph *this) |
| void | Graph_import (struct Graph *this, unsigned int index, unsigned int one, unsigned int two, unsigned int three, unsigned int four, unsigned int five, unsigned int six, int *error) |
| void | Graph_export (struct Graph *this, unsigned int index, unsigned int *one, unsigned int *two, unsigned int *three, unsigned int *four, unsigned int *five, unsigned int *six, int *error) |
| void Graph_addCluster | ( | struct Graph * | this, |
| unsigned int | length, | ||
| unsigned int * | vertices, | ||
| int * | error | ||
| ) |
| void Graph_addEdge | ( | struct Graph * | this, |
| unsigned int | source, | ||
| unsigned int | target, | ||
| int * | error | ||
| ) |
It adds a directed edge from a source vertex to a target vertex.
| this | a graph storage |
| source | a source vertex |
| target | a target vertex |
| error | error tracking (0 means no error) |
Definition at line 298 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Graph_addVertex | ( | struct Graph * | this, |
| int * | error | ||
| ) |
| struct Graph * Graph_construct | ( | unsigned int | length, |
| int * | error | ||
| ) |
| unsigned int Graph_countSources | ( | const struct Graph * | this, |
| unsigned int | target, | ||
| int * | error | ||
| ) |
It counts all source vertices that have an edge leading to a particular target vertex.
| this | a graph storage |
| target | a target vertex |
| error | error tracking (0 means no error) |
Definition at line 482 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Graph_countTargets | ( | const struct Graph * | this, |
| unsigned int | source, | ||
| int * | error | ||
| ) |
It counts all target vertices that have an edge leading from a particular source vertex.
| this | a graph storage |
| source | a source vertex |
| error | error tracking (0 means no error) |
Definition at line 504 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void Graph_export | ( | struct Graph * | this, |
| unsigned int | index, | ||
| unsigned int * | one, | ||
| unsigned int * | two, | ||
| unsigned int * | three, | ||
| unsigned int * | four, | ||
| unsigned int * | five, | ||
| unsigned int * | six, | ||
| int * | error | ||
| ) |
| unsigned int Graph_getLength | ( | const struct Graph * | this | ) |
| int Graph_hasEdge | ( | const struct Graph * | this, |
| unsigned int | source, | ||
| unsigned int | target, | ||
| int * | error | ||
| ) |
It checks if a graph storage has a directed edge between two vertices.
| this | a graph storage |
| source | a source vertex |
| target | a target vertex |
| error | error tracking (0 means no error) |
Definition at line 179 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void Graph_import | ( | struct Graph * | this, |
| unsigned int | index, | ||
| unsigned int | one, | ||
| unsigned int | two, | ||
| unsigned int | three, | ||
| unsigned int | four, | ||
| unsigned int | five, | ||
| unsigned int | six, | ||
| int * | error | ||
| ) |
| unsigned int Graph_protrudeCluster | ( | struct Graph * | this, |
| unsigned int | predecessor, | ||
| int * | error | ||
| ) |
| void Graph_readCluster | ( | const struct Graph * | this, |
| unsigned int | predecessor, | ||
| unsigned int | length, | ||
| unsigned int * | vertices, | ||
| int * | error | ||
| ) |
| unsigned int Graph_readLastSource | ( | const struct Graph * | this, |
| unsigned int | target, | ||
| int * | error | ||
| ) |
It reads the last source vertex of a target vertex, if it exists.
In case the target vertex is connected to no source vertices, zero is returned.
| this | a graph storage |
| target | a target vertex |
| error | error tracking (0 means no error) |
Definition at line 680 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Graph_readLastTarget | ( | const struct Graph * | this, |
| unsigned int | source, | ||
| int * | error | ||
| ) |
It reads the last target vertex of a source vertex, if it exists.
In case the source vertex is connected to no target vertices, zero is returned.
| this | a graph storage |
| source | a source vertex |
| error | error tracking (0 means no error) |
Definition at line 712 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void Graph_readSources | ( | const struct Graph * | this, |
| unsigned int | target, | ||
| unsigned int | length, | ||
| unsigned int * | sources, | ||
| int * | error | ||
| ) |
It reads all source vertices that have an edge leading to a particular target vertex.
| this | a graph storage |
| target | a target vertex |
| length | buffer length |
| sources | a buffer to put source vertices into |
| error | error tracking (0 means no error) |
Definition at line 526 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void Graph_readTargets | ( | const struct Graph * | this, |
| unsigned int | source, | ||
| unsigned int | length, | ||
| unsigned int * | targets, | ||
| int * | error | ||
| ) |
It reads all target vertices that have an edge leading from a particular source vertex.
| this | a graph storage |
| source | a source vertex |
| length | buffer length |
| targets | a buffer to put target vertices into |
| error | error tracking (0 means no error) |
Definition at line 603 of file Graph.c.
Here is the call graph for this function:
Here is the caller graph for this function: