@@ -126,7 +126,7 @@ def regexp(expr, item):
126
126
127
127
class GraphDatabase ():
128
128
r"""
129
- Graph Database
129
+ Graph Database
130
130
131
131
This class interfaces with the sqlite database graphs.db. The database
132
132
contains all unlabeled graphs with 7 or fewer nodes. This class will
@@ -210,22 +210,20 @@ class GraphDatabase():
210
210
"""
211
211
212
212
def cursor (self , query = None , with_regexp = False ):
213
- """
213
+ r """
214
214
Allows the user to interact directly with the database by establishing
215
215
a connection and creating a cursor (i.e.: pysqlite).
216
216
217
217
Will return a list containing the results (unformatted) of the query.
218
218
219
219
See class docstrings for information about the structure of graphs.db.
220
220
221
- \b egin{verbatim}
222
221
INPUT:
223
222
query -- (String) Any sqlite call pertaining to graphs.db (see
224
223
examples below).
225
224
with_regexp -- (Boolean) True to define the sqlite function regexp
226
225
(for querying with regular expressions).
227
226
False otherwise.
228
- \end{verbatim}
229
227
230
228
EXAMPLES:
231
229
sage: b = graphs_query.cursor(query='select * from graph_data where num_vertices=5',with_regexp=False)
@@ -277,7 +275,6 @@ def display_all(self, query=None, layout='circular', graph6=None, num_vertices=N
277
275
Displays the results of a query in a table, including all stored
278
276
properties and an image for each graph.
279
277
280
- \begin{verbatim}
281
278
INPUT:
282
279
query -- (String) A sqlite query for graphs.db (See examples below).
283
280
The query string currently must lower case and begin with:
@@ -410,7 +407,6 @@ def display_all(self, query=None, layout='circular', graph6=None, num_vertices=N
410
407
entry represents an inequality:
411
408
'=','>','<','>=','<='
412
409
vertex_transitive -- (Boolean)
413
- \end{verbatim}
414
410
415
411
EXAMPLES:
416
412
The basics:
@@ -552,7 +548,6 @@ def display_tables(self, tables=None, layout='circular', query=None, graph6=None
552
548
Displays the results of a query in a table, including all stored
553
549
properties from the specified database tables and an image for each graph.
554
550
555
- \begin{verbatim}
556
551
INPUT:
557
552
query -- (String) A sqlite query for graphs.db (See examples below).
558
553
The query string currently must lower case and begin with:
@@ -689,7 +684,6 @@ def display_tables(self, tables=None, layout='circular', query=None, graph6=None
689
684
entry represents an inequality:
690
685
'=','>','<','>=','<='
691
686
vertex_transitive -- (Boolean)
692
- \end{verbatim}
693
687
694
688
EXAMPLES:
695
689
The basics:
@@ -851,7 +845,6 @@ def display_properties(self, properties=None, layout='circular', query=None, gra
851
845
Displays the results of a query in a table, including all specified
852
846
properties and an image for each graph.
853
847
854
- \begin{verbatim}
855
848
INPUT:
856
849
query -- (String) A sqlite query for graphs.db (See examples below).
857
850
The query string currently must lower case and begin with:
@@ -987,7 +980,6 @@ def display_properties(self, properties=None, layout='circular', query=None, gra
987
980
entry represents an inequality:
988
981
'=','>','<','>=','<='
989
982
vertex_transitive -- (Boolean)
990
- \end{verbatim}
991
983
992
984
EXAMPLES:
993
985
The basics:
@@ -1176,7 +1168,6 @@ def get_list(self, query=None, graph6=None, num_vertices=None, num_edges=None, \
1176
1168
r"""
1177
1169
Returns a list of SAGE graphs according to provided parameters.
1178
1170
1179
- \begin{verbatim}
1180
1171
INPUT:
1181
1172
query -- (String) A sqlite query for graphs.db (See examples below).
1182
1173
The query string currently must lower case and begin with:
@@ -1305,7 +1296,6 @@ def get_list(self, query=None, graph6=None, num_vertices=None, num_edges=None, \
1305
1296
entry represents an inequality:
1306
1297
'=','>','<','>=','<='
1307
1298
vertex_transitive -- (Boolean)
1308
- \end{verbatim}
1309
1299
1310
1300
EXAMPLES:
1311
1301
sage: g = graphs_query.get_list(num_vertices=5,lovasz_number=3.0,\
@@ -1379,7 +1369,6 @@ def number_of(self, query=None, graph6=None, num_vertices=None, num_edges=None,
1379
1369
Returns the integer that represents the number of unlabeled graphs with 7 or
1380
1370
fewer vertices that meet the provided search parameters.
1381
1371
1382
- \begin{verbatim}
1383
1372
INPUT:
1384
1373
query -- (String) A sqlite query for graphs.db (See examples below).
1385
1374
The query string currently must lower case and begin with:
@@ -1508,7 +1497,6 @@ def number_of(self, query=None, graph6=None, num_vertices=None, num_edges=None,
1508
1497
entry represents an inequality:
1509
1498
'=','>','<','>=','<='
1510
1499
vertex_transitive -- (Boolean)
1511
- \end{verbatim}
1512
1500
1513
1501
EXAMPLES:
1514
1502
sage: graphs_query.number_of()
0 commit comments