| INGOR
    | 
Network abstraction. More...
#include <net/ytNetwork.h>
| Public Member Functions | |
| ytNetwork * | ytNetwork_new () | 
| Generates a ytNetwork instance. | |
| void | ytNetwork_delete (ytNetwork *this) | 
| Deletes the ytNetwork instance. | |
| void | ytNetwork_setGraph (ytNetwork *this, ytGraph *g) | 
| Sets the ytGraph instance as the structure. | |
| ytGraph * | ytNetwork_getGraph (const ytNetwork *this) | 
| Returns the ytGraph instance set as the structure. | |
| void | ytNetwork_addNode (ytNetwork *this, ytNode *node) | 
| Adds the ytNode instance. | |
| ytNode * | ytNetwork_getNode (const ytNetwork *this, int j) | 
| Returns the ytNode instance at the specified index. | |
| ytNode * | ytNetwork_setNode (ytNetwork *this, int j, ytNode *node) | 
| Replaces the ytNode instance. | |
| int | ytNetwork_numNodes (const ytNetwork *this) | 
| Returns the number of nodes. | |
| int | ytNetwork_numGraphNodes (const ytNetwork *this) | 
| Returns the number of nodes in the ytGraph instance set to this network. | |
| int | ytNetwork_degree (const ytNetwork *this, int j) | 
| Returns the degree of the specified node. | |
| int | ytNetwork_numParents (const ytNetwork *this, int j) | 
| Returns the number of parents. | |
| int | ytNetwork_maxParents (const ytNetwork *this) | 
| Returns the maximum number of parents. | |
| int | ytNetwork_numChildren (const ytNetwork *this, int j) | 
| Return the number of children. | |
| int | ytNetwork_numEdges (const ytNetwork *this) | 
| Returns the number of edges. | |
| ytNode * | ytNetwork_getParent (const ytNetwork *this, int j, int k) | 
| Returns the parent of the specified node. | |
| int | ytNetwork_getParentId (const ytNetwork *this, int j, int k) | 
| Returns the index of the parent of the node. | |
| void | ytNetwork_setProperty (ytNetwork *this, const char *key, ytObject *value) | 
| Sets a property value with its key. | |
| ytObject * | ytNetwork_getProperty (const ytNetwork *this, const char *key) | 
| Returns the property value associated with the specified key. | |
| int | ytNetwork_getPropertySize (const ytNetwork *this) | 
| const char * | ytNetwork_getPropertyKey (const ytNetwork *this, int i) | 
| ytObject * | ytNetwork_getPropertyAt (const ytNetwork *this, int i) | 
| int | ytNetwork_findNode (const ytNetwork *this, const char *name) | 
| Returns the index of the node which has the specified name. | |
| ytObject * | ytNetwork_getNodeProperty (ytNetwork *this, int j, const char *key) | 
| void | ytNetwork_setNodeProperty (ytNetwork *this, int j, const char *key, ytObject *value) | 
| void | ytNetwork_setEdge (ytNetwork *this, ytEdge *edge) | 
| Sets the ytEdge instance. | |
| ytEdge * | ytNetwork_getEdge (ytNetwork *this, int u, int v) | 
| Returns the ytEdge instance. | |
| ytEdge * | ytNetwork_getEdgeConst (const ytNetwork *this, int u, int v) | 
| Returns the ytEdge instance. | |
| ytEdge * | ytNetwork_removeEdge (ytNetwork *this, int u, int v) | 
| Removes an edge. | |
| size_t | ytNetwork_size (const ytNetwork *this) | 
| void | ytNetwork_MPI_Bcast (ytNetwork **pNetwork, int root, MPI_Comm comm) | 
| [MPI] Broadcasts the ytNetwork instance with MPI. | |
Network abstraction.
The structure of the network is maintained by the ytGraph instance. The any type of ytGraph implementations can be used.
order | void ytNetwork_delete | ( | ytNetwork * | this | ) | 
| int ytNetwork_findNode | ( | const ytNetwork * | this, | 
| const char * | name ) | 
Returns the index of the node which has the specified name.
| this | pointer to the ytNetwork instance. | 
| name | name of node to find. | 
Returns the ytNode instance at the specified index.
| this | |
| j | index of the node to return. | 
Returns the property value associated with the specified key.
| this | pointer to the ytNetwork instance. | 
| key | key of the property to return. | 
| int ytNetwork_maxParents | ( | const ytNetwork * | this | ) | 
Returns the maximum number of parents.
| this | 
| void ytNetwork_MPI_Bcast | ( | ytNetwork ** | pNetwork, | 
| int | root, | ||
| MPI_Comm | comm ) | 
[MPI] Broadcasts the ytNetwork instance with MPI.
NOTE: Only the MPI-enabled library supports this routine.
| [in,out] | network | pointer of pointer to the ytNetwork instance. For the root rank, it specifies the instance to send. Otherwise, it specifies the pointer to receive it. If the pointer is non-NULL in non-root rank processes, the instance will be deleted before receiving the broadcasted instance. | 
| root | root rank in the communicator to broadcast. Other ranks receive the broadcasted instance. | |
| comm | MPI communicator. | 
Sets a property value with its key.
| this | |
| key | |
| value |