1
# Check the basic (interface) functions and implicitly also compilation
3
# Test suite for the IGraph library.
4
# Copyright (C) 2005 Gabor Csardi <csardi@rmki.kfki.hu>
5
# MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 2 of the License, or
10
# (at your option) any later version.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program; if not, write to the Free Software
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24
AT_BANNER([[Basic (interface) functions.]])
26
AT_SETUP([Creating an empty graph (igraph_empty): ])
27
AT_KEYWORDS([igraph_empty])
28
AT_COMPILE_CHECK([simple/igraph_empty.c])
31
AT_SETUP([Copying a graph (igraph_copy): ])
32
AT_KEYWORDS([igraph_copy igraph_create])
33
AT_COMPILE_CHECK([simple/igraph_copy.c])
36
AT_SETUP([Adding edges to a graph (igraph_add_edges): ])
37
AT_KEYWORDS([igraph_add_edges])
38
AT_COMPILE_CHECK([simple/igraph_add_edges.c],
39
[simple/igraph_add_edges.out])
42
AT_SETUP([Adding vertices (igraph_add_vertices): ])
43
AT_KEYWORDS([igraph_add_vertices])
44
AT_COMPILE_CHECK([simple/igraph_add_vertices.c])
47
AT_SETUP([Deleting edges (igraph_delete_edges): ])
48
AT_KEYWORDS([igraph_delete_vertices])
49
AT_COMPILE_CHECK([simple/igraph_delete_edges.c])
52
AT_SETUP([Deleting vertices (igraph_delete_vertices): ])
53
AT_KEYWORDS([igraph_delete_vertices])
54
AT_COMPILE_CHECK([simple/igraph_delete_vertices.c])
57
AT_SETUP([Neighbors (igraph_neighbors): ])
58
AT_KEYWORDS([igraph_neighbors])
59
AT_COMPILE_CHECK([simple/igraph_neighbors.c], [simple/igraph_neighbors.out])
62
AT_SETUP([Is the graph directed? (igraph_is_directed): ])
63
AT_KEYWORDS([igraph_is_directed])
64
AT_COMPILE_CHECK([simple/igraph_is_directed.c])
67
AT_SETUP([Degree of the vertices (igraph_degree): ])
68
AT_KEYWORDS([igraph_degree])
69
AT_COMPILE_CHECK([simple/igraph_degree.c], [simple/igraph_degree.out])
72
AT_SETUP([Query edge ids (igraph_get_eid): ])
73
AT_KEYWORDS([igraph_get_eid edge id])
74
AT_COMPILE_CHECK([simple/igraph_get_eid.c], [simple/igraph_get_eid.out])
77
AT_SETUP([Query many edge ids (igraph_get_eids): ])
78
AT_KEYWORDS([igraph_get_eids edge id])
79
AT_COMPILE_CHECK([simple/igraph_get_eids.c], [simple/igraph_get_eids.out])