Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
tutorial:apps_graph [2009/11/03 13:00] – created sherrmann | tutorial:apps_graph [2017/06/13 10:40] – [Directed Graphs] commented out erroneous statement oroehrig | ||
---|---|---|---|
Line 150: | Line 150: | ||
</ | </ | ||
+ | ===== Directed Graphs ===== | ||
+ | |||
+ | By specifying the template parameter '' | ||
+ | |||
+ | < | ||
+ | graph > $g=new objects:: | ||
+ | graph > print $g-> | ||
+ | 4 | ||
+ | </ | ||
+ | |||
+ | Here is an example of an undirected graph property which does not make sense for directed graphs. | ||
+ | |||
+ | < | ||
+ | graph > #print $g-> | ||
+ | |||
+ | polymake: | ||
+ | </ | ||
+ | |||
+ | Graphs with multiple edges/arcs are currently not supported. | ||
+ | |||
+ | |||
+ | ===== Visualizing Graphs ===== | ||
+ | |||
+ | Like other " | ||
+ | |||
+ | < | ||
+ | graph > graphviz($g-> | ||
+ | </ | ||
+ | |||
+ | Note that the latter starts a postscript viewer with the '' |