Main > Programming > Libraries >

Q-Graph 1.4

Q-Graph 1.4

Sponsored Links

Q-Graph 1.4 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.085 MB
Platform: Any Platform
License: GPL (GNU General Public License)
Price:
Downloads: 1353
Date added: 2006-02-09
Publisher: Albert Graef

Q-Graph 1.4 description

Q-Graph is a collection of Q scripts that provide a graph data structure and a full-featured graph editor (the latter requires Tcl/Tk).

Q-Graph library can be used to implement and test graph algorithms using the Q language.

Q is a functional programming language based on term rewriting. Thus, a Q program or "script" is simply a collection of equations which are used to evaluate expressions in a symbolic fashion.

The equations establish algebraic identities and are interpreted as rewriting rules in order to reduce expressions to "normal forms".

For instance, here is how you define a function sqr which squares its argument by multiplying it with itself:
sqr X = X*X;

Note that, as in Prolog, capitalized identifiers are used to indicate the variables in an equation, which are bound to the actual values when an equation is applied. Equations may also include a condition part, as in the following definition of the factorial function:

fact N = N*fact (N-1) if N>0;
= 1 otherwise;

Functions on structured arguments are defined by "pattern matching". E.g., the product of a list (denoted in Prolog-like syntax) can be computed with these two equations:

prod [] = 1;
prod [X|Xs] = X*prod Xs;

With this definition, the factorial can now also be defined as follows (the notation [1..N], as in Haskell, denotes an arithmetic sequence):

fact N = prod [1..N];

As you can see, the definitions are really just like mathematical equations. The syntax is superficially similar to other modern functional languages like Miranda and Haskell, except that Q is "free-format", i.e., it does not use layout to indicate syntactical structure (thus the semicolon is used to terminate an equation).

Due to its term rewriting heritage, Q goes well beyond most other functional languages in that it also allows you to perform computations with symbolic expressions. For instance, with the definition of the sqr function from above, you will find that sqr (X+1) evaluates to (X+1)*(X+1). This might first look like an arcane feature, but it is actually quite useful, because you can try your definitions with symbolic inputs, too.

Q-Graph 1.4 Screenshot

Advertisements

Q-Graph 1.4 Keywords

Bookmark Q-Graph 1.4

Hyperlink code:
Link for forum:

Q-Graph 1.4 Copyright

WareSeeker periodically updates pricing and software information of Q-Graph 1.4 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Q-Graph 1.4 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Boost::Graph is a Perl interface to the Boost-Graph C++ libraries. Free Download
Graph is a Perl module with graph data structures and algorithms. Free Download
IPFW grapher provides graphical stats for FreeBSDs ipfw. Free Download
A library for working with graphs in Python Free Download
Squid Graph is a Squid logfile analyzer and traffic grapher. Free Download
GraphViz is a Perl interface to the GraphViz graphing tool. Free Download
B::Graph is a Perl compiler backend to produce graphs of OP trees. Free Download
SVG::Graph is a Perl module to visualize your data in Scalable Vector Graphics (SVG) format. Free Download