File: foreign.at

package info (click to toggle)
igraph 0.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 10,652 kB
  • sloc: ansic: 80,327; sh: 18,837; cpp: 11,796; makefile: 1,376; yacc: 833; xml: 378; lex: 305
file content (76 lines) | stat: -rw-r--r-- 3,100 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Check functions for importing and exporting various formats

# Test suite for the IGraph library.
# Copyright (C) 2005  Gabor Csardi <csardi@rmki.kfki.hu>
# MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc.,  51 Franklin Street, Fifth Floor, Boston, MA 
# 02110-1301 USA

AT_BANNER([[Foreign formats]])

AT_SETUP([Reading Pajek (igraph_read_graph_pajek):])
AT_KEYWORDS([igraph_read_graph_pajek foreign pajek])
AT_COMPILE_CHECK([simple/foreign.c], [simple/foreign.out], [simple/LINKS.NET])
AT_CLEANUP

AT_SETUP([GraphML (igraph_{read,write}_graph_graphml):])
AT_KEYWORDS([igraph_read_graph_graphml igraph_write_graph_graphml foreign graphml])
AT_COMPILE_CHECK([simple/graphml.c], [simple/graphml.out], 
	[simple/{test.gxl,graphml-hsa05010.xml}])
AT_CLEANUP

AT_SETUP([Writing Pajek (igraph_write_graph_pajek):])
AT_KEYWORDS([igraph_write_graph_pajek foreign pajek])
AT_COMPILE_CHECK([simple/igraph_write_graph_pajek.c], 
 		 [simple/igraph_write_graph_pajek.out])
AT_CLEANUP

AT_SETUP([Reading an LGL file (igraph_read_graph_lgl):])
AT_KEYWORDS([igraph_read_graph_lgl LGL foreign])
AT_COMPILE_CHECK([simple/igraph_read_graph_lgl.c],
		 [simple/igraph_read_graph_lgl.out],
		 [{simple/igraph_read_graph_lgl-1.lgl,simple/igraph_read_graph_lgl-2.lgl,simple/igraph_read_graph_lgl-3.lgl}])
AT_CLEANUP

AT_SETUP([Writing LGL (igraph_write_graph_lgl):])
AT_KEYWORDS([igraph_write_graph_lgl foreign LGL])
AT_COMPILE_CHECK([simple/igraph_write_graph_lgl.c])
AT_CLEANUP

AT_SETUP([Reading a graph from the graph database (igraph_read_graph_graphdb):])
AT_KEYWORDS([igraph_read_graph_graphdb foreign graphdb database isomorphism])
AT_COMPILE_CHECK([simple/igraph_read_graph_graphdb.c],
	[simple/igraph_read_graph_graphdb.out],
	[simple/iso_b03_m1000.A00])
AT_CLEANUP

AT_SETUP([Reading a GML file (igraph_read_graph_gml):])
AT_KEYWORDS([igraph_read_graph_gml foreign GML])
AT_COMPILE_CHECK([simple/gml.c], [simple/gml.out], [simple/karate.gml])
AT_CLEANUP

AT_SETUP([Writing a DOT file (igraph_write_graph_dot):])
AT_KEYWORDS([igraph_write_graph_dot foreign DOT GraphViz])
AT_COMPILE_CHECK([simple/dot.c], [simple/dot.out], [simple/karate.gml])
AT_CLEANUP

AT_SETUP([Different line endings:])
AT_KEYWORDS([igraph_read_graph_pajek igraph_write_graph_pajek 
	foreign line ending lineending])
AT_COMPILE_CHECK([simple/lineendings.c], [simple/lineendings.out],
	[{simple/pajek1.net,simple/pajek2.net,simple/pajek3.net,simple/pajek4.net}])
AT_CLEANUP