ANN  0.1.1.5
A library containing multiple neural network models written in C
graph.h File Reference

PCFNN_GRAPH. More...

#include "../../config.h"
#include <stdlib.h>
#include <stdio.h>
#include "neuron.h"
#include "layer.h"
#include "network.h"
#include <graphviz/gvc.h>
#include <graphviz/graph.h>
+ Include dependency graph for graph.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Agraph_t * PCFNN_GRAPH_create_graph (struct PCFNN_NETWORK *net, char *graph_name)
 Generate a graph (with graphviz) from the given PCFNN_NETWORK. More...
 
int PCFNN_GRAPH_create_graph_to_dot_file (struct PCFNN_NETWORK *net, char *graph_name, char *fout)
 Generate a graph (with graphviz) from the given PCFNN_NETWORK and write it to fout with the dot file format. More...
 
int PCFNN_GRAPH_render_graph_to_stream (struct PCFNN_NETWORK *net, char *graph_name, char *format, FILE *fout) __attribute__((deprecated))
 Generate a graph (with graphviz) from the given PCFNN_NETWORK and render it to the given stream fout with the given format. More...
 
int PCFNN_GRAPH_render_graph_to_file (struct PCFNN_NETWORK *net, char *graph_name, char *format, char *fout) __attribute__((deprecated))
 Generate a graph (with graphviz) from the given PCFNN_NETWORK and render it to the given path fout with the given format. More...
 

Detailed Description

PCFNN_GRAPH.

Author
Cedric FARINAZZO
Version
0.1
Date
24 may 2019

Graph functions for PCFNN neural network

Definition in file graph.h.

Function Documentation

◆ PCFNN_GRAPH_create_graph()

Agraph_t * PCFNN_GRAPH_create_graph ( struct PCFNN_NETWORK net,
char *  graph_name 
)

Generate a graph (with graphviz) from the given PCFNN_NETWORK.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]graph_name(char*) name of your network
Returns
Agraph_t*: graphviz graph pointer

Definition at line 17 of file graph.c.

◆ PCFNN_GRAPH_create_graph_to_dot_file()

int PCFNN_GRAPH_create_graph_to_dot_file ( struct PCFNN_NETWORK net,
char *  graph_name,
char *  fout 
)

Generate a graph (with graphviz) from the given PCFNN_NETWORK and write it to fout with the dot file format.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]graph_name(char*) name of your network
[in]fout(char*) path to file
Returns
0 if ok otherwise -1

Definition at line 90 of file graph.c.

+ Here is the call graph for this function:

◆ PCFNN_GRAPH_render_graph_to_file()

int PCFNN_GRAPH_render_graph_to_file ( struct PCFNN_NETWORK net,
char *  graph_name,
char *  format,
char *  fout 
)

Generate a graph (with graphviz) from the given PCFNN_NETWORK and render it to the given path fout with the given format.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]graph_name(char*) name of your network
[in]format(char*) name of the renderer to use (ex: png, ps, dot, ...)
[in]fout(char*) path to file (will be created if not already exist)
Returns
0 if ok otherwise -1
Bug:
GvContext internal memleak
Deprecated:
reason: GvContent internal memleak

Definition at line 132 of file graph.c.

+ Here is the call graph for this function:

◆ PCFNN_GRAPH_render_graph_to_stream()

int PCFNN_GRAPH_render_graph_to_stream ( struct PCFNN_NETWORK net,
char *  graph_name,
char *  format,
FILE *  fout 
)

Generate a graph (with graphviz) from the given PCFNN_NETWORK and render it to the given stream fout with the given format.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]graph_name(char*) name of your network
[in]format(char*) name of the renderer to use (ex: png, ps, dot, ...)
[in]fout(FILE*) stream to file with written permission
Returns
0 if ok otherwise -1
Bug:
GvContext internal memleak
Deprecated:
reason: GvContent internal memleak

Definition at line 110 of file graph.c.

+ Here is the call graph for this function: