|
INGOR
|
Mapping wrapper of a ytGraph instance. More...
Public Member Functions | |
| ytMapGraph * | ytMapGraph_new (ytGraph *g) |
| Generates a new ytMapGraph instance. | |
| int * | ytMapGraph_setMap (ytMapGraph *this, int *map, int size) |
| Sets the map. | |
| void | ytMapGraph_delete (ytMapGraph *this) |
| Deletes the instance. | |
| int | ytMapGraph_numNodes (const ytMapGraph *this) |
| Returns the number of nodes (vertices). | |
| int | ytMapGraph_numEdges (const ytMapGraph *this) |
| Returns the number of edges. | |
| int | ytMapGraph_checkEdge (const ytMapGraph *this, int src, int dst) |
| Checks if the specified edge exists. | |
| void | ytMapGraph_print (const ytMapGraph *this, FILE *fp) |
| Prints the graph structure. | |
| int ytMapGraph_checkEdge | ( | const ytMapGraph * | this, |
| int | src, | ||
| int | dst ) |
Checks if the specified edge exists.
Note that this does not check the size of values.
| ytMapGraph * ytMapGraph_new | ( | ytGraph * | g | ) |
Generates a new ytMapGraph instance.
Initially, the map is not set.
| int ytMapGraph_numEdges | ( | const ytMapGraph * | this | ) |
Returns the number of edges.
This takes some time for collecting mapped edges that exist in the mapped graph. Note that, to do so, this allocates the working memory internally.