⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gatoglobals.py

📁 一个通用的隐性马尔可夫C代码库 开发环境:C语言 简要说明:这是一个通用的隐性马尔可夫C代码库
💻 PY
📖 第 1 页 / 共 2 页
字号:
##################################################################################       This file is part of Gato (Graph Animation Toolbox) #       version _VERSION_ from _BUILDDATE_. You can find more information at #       http://www.zpr.uni-koeln.de/~gato##	file:   GatoGlobals.py#	author: Alexander Schliep (schliep@zpr.uni-koeln.de)##       Copyright (C) 1998-2002, Alexander Schliep, Winfried Hochstaettler and #       ZAIK/ZPR, Universitaet zu Koeln#                                   #       Contact: schliep@zpr.uni-koeln.de, wh@zpr.uni-koeln.de             ##       Information: http://gato.sf.net##       This library is free software; you can redistribute it and/or#       modify it under the terms of the GNU Library General Public#       License as published by the Free Software Foundation; either#       version 2 of the License, or (at your option) any later version.##       This library 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#       Library General Public License for more details.##       You should have received a copy of the GNU Library General Public#       License along with this library; if not, write to the Free#       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA####       This file is version $Revision: 1.1 $ #                       from $Date: 2003/09/24 12:06:37 $#             last change by $Author: cic99 $.################################################################################### Globals # NOTE: Values will be replaced by values read from gato.cfg gVertexRadius     = 12  gVertexFrameWidth      =  2     gEdgeWidth        =  3     # AnimationgBlinkRate        = 50      # ms 100gBlinkRepeat      =  4      # One more than you want 4# PrintinggPaperHeight      = 1500 # "20i" XXX Should be real paper sizegPaperWidth       = 9000 # "20i"gInteractive      = 1gGridSize         = 50 # Grid size for editorgInfinity         = 9999999True              = 1False             = 0# Internal Color NamescVertexDefault    = "red"cVertexBlink      = "black"cEdgeDefault      = "black"cLabelDefault     = "black"cLabelDefaultInverted = "white"cLabelBlink       = "green"cInitial          = "green"cVisited          = "grey"#cOnQueue          = "red"#cRemovedFromQueue = "blue"cOnQueue          = "blue"cRemovedFromQueue = "grey"cTraversedEdge    = "grey"gColors = ['#333333','#663333','#993333','#CC3333',	  '#336633','#666633','#996633','#CC6633',	  '#339933','#669933','#999933','#CC9933',	  '#33CC33','#66CC33','#99CC33','#CCCC33',	  '#333366','#663366','#993366','#CC3366',	  '#336666','#666666','#996666','#CC6666',	  '#339966','#669966','#999966','#CC9966',	  '#33CC66','#66CC66','#99CC66','#CCCC66',	  '#3333CC','#6633CC','#9933CC','#CC33CC',	  '#3366CC','#6666CC','#9966CC','#CC66CC',	  '#3399CC','#6699CC','#9999CC','#CC99CC',	  '#33CCCC','#66CCCC','#99CCCC','#CCCCCC']	  # ExceptionsGraphNotSimpleError = 'GraphNotSimpleError'NoSuchVertexError   = 'NoSuchVertexError'NoSuchEdgeError     = 'NoSuchEdgeError'gProperty = {}#             property       explanation#gProperty = {'Connected':     'has more than one connected component'} #,#              'Directed':      'edges are not directed',#             'EdgeWeights':   'not enough weights on the edges',#              'VertexWeights': 'not enough weights on the vertices' #	     }gGatoHelp = """<HTML><HEAD><TITLE>Gato __VERSION__ </TITLE></HEAD><BODY><H3>Keyboard Shortcuts</H3><ul><li> <tt>s</tt> Start<li> <tt>x</tt> Stop<li> <tt>[space]</tt> Step<li> <tt>c</tt> Continue<li> <tt>t</tt> trace<li> <tt>b</tt> toggle breakpoint</ul><img src="Icons/gato.gif"></BODY></HTML>"""gLGPLText = """		  GNU LIBRARY GENERAL PUBLIC LICENSE		       Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc.    		    59 Temple Place, Suite 330, Boston, MA  02111-1307  USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.[This is the first released version of the library GPL.  It is numbered 2 because it goes with version 2 of the ordinary GPL.]			    Preamble  The licenses for most software are designed to take away yourfreedom to share and change it.  By contrast, the GNU General PublicLicenses are intended to guarantee your freedom to share and changefree software--to make sure the software is free for all its users.  This license, the Library General Public License, applies to somespecially designated Free Software Foundation software, and to anyother libraries whose authors decide to use it.  You can use it foryour libraries, too.  When we speak of free software, we are referring to freedom, notprice.  Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthis service if you wish), that you receive source code or can get itif you want it, that you can change the software or use pieces of itin new free programs; and that you know you can do these things.  To protect your rights, we need to make restrictions that forbidanyone to deny you these rights or to ask you to surrender the rights.These restrictions translate to certain responsibilities for you ifyou distribute copies of the library, or if you modify it.  For example, if you distribute copies of the library, whether gratisor for a fee, you must give the recipients all the rights that we gaveyou.  You must make sure that they, too, receive or can get the sourcecode.  If you link a program with the library, you must providecomplete object files to the recipients so that they can relink themwith the library, after making changes to the library and recompilingit.  And you must show them these terms so they know their rights.  Our method of protecting your rights has two steps: (1) copyrightthe library, and (2) offer you this license which gives you legalpermission to copy, distribute and/or modify the library.  Also, for each distributor's protection, we want to make certainthat everyone understands that there is no warranty for this freelibrary.  If the library is modified by someone else and passed on, wewant its recipients to know that what they have is not the originalversion, so that any problems introduced by others will not reflect onthe original authors' reputations.  Finally, any free program is threatened constantly by softwarepatents.  We wish to avoid the danger that companies distributing freesoftware will individually obtain patent licenses, thus in effecttransforming the program into proprietary software.  To prevent this,we have made it clear that any patent must be licensed for everyone'sfree use or not licensed at all.  Most GNU software, including some libraries, is covered by the ordinaryGNU General Public License, which was designed for utility programs.  Thislicense, the GNU Library General Public License, applies to certaindesignated libraries.  This license is quite different from the ordinaryone; be sure to read it in full, and don't assume that anything in it isthe same as in the ordinary license.  The reason we have a separate public license for some libraries is thatthey blur the distinction we usually make between modifying or adding to aprogram and simply using it.  Linking a program with a library, withoutchanging the library, is in some sense simply using the library, and isanalogous to running a utility program or application program.  However, ina textual and legal sense, the linked executable is a combined work, aderivative of the original library, and the ordinary General Public Licensetreats it as such.  Because of this blurred distinction, using the ordinary GeneralPublic License for libraries did not effectively promote softwaresharing, because most developers did not use the libraries.  Weconcluded that weaker conditions might promote sharing better.  However, unrestricted linking of non-free programs would deprive theusers of those programs of all benefit from the free status of thelibraries themselves.  This Library General Public License is intended topermit developers of non-free programs to use free libraries, whilepreserving your freedom as a user of such programs to change the freelibraries that are incorporated in them.  (We have not seen how to achievethis as regards changes in header files, but we have achieved it as regardschanges in the actual functions of the Library.)  The hope is that thiswill lead to faster development of free libraries.  The precise terms and conditions for copying, distribution andmodification follow.  Pay close attention to the difference between a\"work based on the library\" and a \"work that uses the library\".  Theformer contains code derived from the library, while the latter onlyworks together with the library.  Note that it is possible for a library to be covered by the ordinaryGeneral Public License rather than by this special one.		  GNU LIBRARY GENERAL PUBLIC LICENSE   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION  0. This License Agreement applies to any software library whichcontains a notice placed by the copyright holder or other authorizedparty saying it may be distributed under the terms of this LibraryGeneral Public License (also called \"this License\").  Each licensee isaddressed as \"you\".  A \"library\" means a collection of software functions and/or dataprepared so as to be conveniently linked with application programs(which use some of those functions and data) to form executables.  The \"Library\", below, refers to any such software library or workwhich has been distributed under these terms.  A \"work based on theLibrary\" means either the Library or any derivative work undercopyright law: that is to say, a work containing the Library or aportion of it, either verbatim or with modifications and/or translatedstraightforwardly into another language.  (Hereinafter, translation isincluded without limitation in the term \"modification\".)  \"Source code\" for a work means the preferred form of the work formaking modifications to it.  For a library, complete source code meansall the source code for all modules it contains, plus any associatedinterface definition files, plus the scripts used to control compilationand installation of the library.  Activities other than copying, distribution and modification are notcovered by this License; they are outside its scope.  The act ofrunning a program using the Library is not restricted, and output fromsuch a program is covered only if its contents constitute a work basedon the Library (independent of the use of the Library in a tool forwriting it).  Whether that is true depends on what the Library doesand what the program that uses the Library does.    1. You may copy and distribute verbatim copies of the Library'scomplete source code as you receive it, in any medium, provided thatyou conspicuously and appropriately publish on each copy anappropriate copyright notice and disclaimer of warranty; keep intactall the notices that refer to this License and to the absence of anywarranty; and distribute a copy of this License along with theLibrary.  You may charge a fee for the physical act of transferring a copy,and you may at your option offer warranty protection in exchange for afee.  2. You may modify your copy or copies of the Library or any portionof it, thus forming a work based on the Library, and copy anddistribute such modifications or work under the terms of Section 1above, provided that you also meet all of these conditions:    a) The modified work must itself be a software library.    b) You must cause the files modified to carry prominent notices    stating that you changed the files and the date of any change.    c) You must cause the whole of the work to be licensed at no    charge to all third parties under the terms of this License.    d) If a facility in the modified Library refers to a function or a    table of data to be supplied by an application program that uses    the facility, other than as an argument passed when the facility    is invoked, then you must make a good faith effort to ensure that,    in the event an application does not supply such function or    table, the facility still operates, and performs whatever part of    its purpose remains meaningful.    (For example, a function in a library to compute square roots has    a purpose that is entirely well-defined independent of the    application.  Therefore, Subsection 2d requires that any    application-supplied function or table used by this function must    be optional: if the application does not supply it, the square    root function must still compute square roots.)These requirements apply to the modified work as a whole.  If

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -