123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <igraph.h>
- #include "io.h"
- void read_graphml(igraph_t *g, FILE *ist) {
- igraph_read_graph_graphml(g, ist, 0);
- }
- void read_gml(igraph_t *g, FILE *ist) {
- igraph_read_graph_gml(g, ist);
- }
- void read_pajek(igraph_t *g, FILE *ist) {
- igraph_read_graph_pajek(g, ist);
- }
- void read_edgelist(igraph_t *g, FILE *ist) {
- igraph_read_graph_edgelist(g, ist, 0, 0);
- }
- void read_ncol(igraph_t *g, FILE *ist) {
- igraph_read_graph_ncol(g, ist, NULL, 0, IGRAPH_ADD_WEIGHTS_IF_PRESENT, IGRAPH_UNDIRECTED);
- }
- void read_lgl(igraph_t *g, FILE *ist) {
- igraph_read_graph_lgl(g, ist, 0, IGRAPH_ADD_WEIGHTS_IF_PRESENT, IGRAPH_UNDIRECTED);
- }
- void read_dl(igraph_t *g, FILE *ist) {
- igraph_read_graph_dl(g, ist, 0);
- }
- void read_graphdb(igraph_t *g, FILE *ist) {
- igraph_read_graph_graphdb(g, ist, 0);
- }
- void read_error(igraph_t *g, FILE *ist) {
- fprintf(ost, "Invalid input format specified.\n");
- }
|