INGOR
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ytMapGraph Class Reference

Mapping wrapper of a ytGraph instance. More...

Public Member Functions

ytMapGraphytMapGraph_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.
 

Detailed Description

Mapping wrapper of a ytGraph instance.

See also
ytObject, ytGraph

Member Function Documentation

◆ ytMapGraph_checkEdge()

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_new()

ytMapGraph * ytMapGraph_new ( ytGraph g)

Generates a new ytMapGraph instance.

Initially, the map is not set.

◆ ytMapGraph_numEdges()

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.


The documentation for this class was generated from the following files: