1 ! Copyright (C) 2011 Alex Vondrak.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: graphviz help.markup help.syntax kernel strings ;
4 IN: graphviz.attributes
15 HELP: <edge-attributes>
17 { "attrs" edge-attributes }
19 { $description "Constructs " { $instance edge-attributes } " tuple with no attributes set." } ;
21 HELP: <graph-attributes>
23 { "attrs" graph-attributes }
25 { $description "Constructs " { $instance graph-attributes } " tuple with no attributes set." } ;
27 HELP: <node-attributes>
29 { "attrs" node-attributes }
31 { $description "Constructs " { $instance node-attributes } " tuple with no attributes set." } ;
34 { $class-description "Represents Graphviz attributes that are valid for edges. See attributes marked " { $emphasis "E" } " in " { $url "http://graphviz.org/content/attrs" } ". Each slot must be " { $maybe string } "." } ;
36 HELP: graph-attributes
37 { $class-description "Represents Graphviz attributes that are valid for graphs and subgraphs (including clusters). See attributes marked " { $emphasis "G" } ", " { $emphasis "S" } ", and " { $emphasis "C" } " in " { $url "http://graphviz.org/content/attrs" } ". Each slot must be " { $maybe string } "." } ;
40 { $class-description "Represents Graphviz attributes that are valid for nodes. See attributes marked " { $emphasis "N" } " in " { $url "http://graphviz.org/content/attrs" } ". Each slot must be " { $maybe string } "." } ;
42 ARTICLE: "graphviz.attributes" "Graphviz attributes"
43 "In Graphviz, " { $emphasis "attributes" } " control different layout characteristics of graphs, subgraphs, nodes, and edges. For example, you can specify the color of an edge or the shape of a node. Graphviz provides documentation for all valid attributes at " { $url "http://graphviz.org/content/attrs" } "."
45 "The " { $vocab-link "graphviz.attributes" } " vocabulary simply provides three different tuples to encapsulate Graphviz attributes:"
46 { $subsections node-attributes edge-attributes graph-attributes }
47 "Empty instances are created with the following constructors:"
48 { $subsections <node-attributes> <edge-attributes> <graph-attributes> }
51 ABOUT: "graphviz.attributes"