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 | user_guide:apps_graph [2019/01/25 09:27] – ↷ Page moved from tutorial:apps_graph to user_guide:apps_graph 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 '' |