1 (* Copyright (C) 2004, HELM Team.
3 * This file is part of HELM, an Hypertextual, Electronic
4 * Library of Mathematics, developed at the Computer Science
5 * Department, University of Bologna, Italy.
7 * HELM is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * HELM 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 HELM; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * For details, see the HELM World-Wide-Web page,
23 * http://helm.cs.unibo.it/
28 The strings contains an unreadable message
30 exception UniverseInconsistency of string
38 Opaque data structure you will use to store constraints
43 returns a fresh universe
49 really useful at the begin and in all the functions that don't care
52 val empty_ugraph: universe_graph
55 These are the real functions to add eq/ge/gt constraints
56 to the passed graph, returning an updated graph or raising
60 ?fast:bool -> universe -> universe -> universe_graph -> universe_graph
62 ?fast:bool -> universe -> universe -> universe_graph -> universe_graph
64 ?fast:bool -> universe -> universe -> universe_graph -> universe_graph
67 debug function to print the graph to standard error
70 universe_graph -> unit
73 does what expected, but I don't remember why this was exported
75 val string_of_universe:
79 given the list of visible universes (see universes_of_obj) returns a
80 cleaned graph (cleaned from the not visible nodes)
83 universe_graph -> universe list -> universe_graph
86 Since fresh() can't add the right uri to each node, you
87 must fill empty nodes with the uri before you serialize the graph to xml
89 val fill_empty_nodes_with_uri:
90 universe_graph -> UriManager.uri -> universe_graph
95 - remember already merged uri so that we completely skip already merged
96 graphs, this may include a dependecy graph (not merge a subpart of an
100 universe_graph -> universe_graph -> universe_graph
103 ugraph to xml file and viceversa
105 val write_xml_of_ugraph:
106 string -> universe_graph -> unit
109 given a filename parses the xml and returns the data structure
112 string -> universe_graph
113 val restart_numbering:
119 val get_spent_time: unit -> float
120 val reset_spent_time: unit -> unit