annotate toolboxes/graph_visualisation/share/man/man1/gvgen.1 @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
rev   line source
Daniel@0 1 .TH GC 1 "27 March 2008"
Daniel@0 2 .SH NAME
Daniel@0 3 gvgen \- generate graphs
Daniel@0 4 .SH SYNOPSIS
Daniel@0 5 .B gvgen
Daniel@0 6 [
Daniel@0 7 .B \-d?
Daniel@0 8 ]
Daniel@0 9 [
Daniel@0 10 .BI -c n
Daniel@0 11 ]
Daniel@0 12 [
Daniel@0 13 .BI -C x,y
Daniel@0 14 ]
Daniel@0 15 [
Daniel@0 16 .BI -g [\fBf\fP]x,y
Daniel@0 17 ]
Daniel@0 18 [
Daniel@0 19 .BI -G [\fBf\fP]x,y
Daniel@0 20 ]
Daniel@0 21 [
Daniel@0 22 .BI -h n
Daniel@0 23 ]
Daniel@0 24 [
Daniel@0 25 .BI -k n
Daniel@0 26 ]
Daniel@0 27 [
Daniel@0 28 .BI -b x,y
Daniel@0 29 ]
Daniel@0 30 [
Daniel@0 31 .BI -p n
Daniel@0 32 ]
Daniel@0 33 [
Daniel@0 34 .BI -s n
Daniel@0 35 ]
Daniel@0 36 [
Daniel@0 37 .BI -S n
Daniel@0 38 ]
Daniel@0 39 [
Daniel@0 40 .BI -t n
Daniel@0 41 ]
Daniel@0 42 [
Daniel@0 43 .BI -T x,y
Daniel@0 44 ]
Daniel@0 45 [
Daniel@0 46 .BI -w n
Daniel@0 47 ]
Daniel@0 48 [
Daniel@0 49 .BI -o outfile
Daniel@0 50 ]
Daniel@0 51 .SH DESCRIPTION
Daniel@0 52 .B gvgen
Daniel@0 53 generates a variety of simple, regularly-structured abstract
Daniel@0 54 graphs.
Daniel@0 55 .SH OPTIONS
Daniel@0 56 The following options are supported:
Daniel@0 57 .TP
Daniel@0 58 .BI \-c " n"
Daniel@0 59 Generate a cycle with \fIn\fP vertices and edges.
Daniel@0 60 .TP
Daniel@0 61 .BI \-C " x,y"
Daniel@0 62 Generate an \fIx\fP by \fIy\fP cylinder.
Daniel@0 63 This will have \fIx*y\fP vertices and
Daniel@0 64 \fI2*x*y - y\fP edges.
Daniel@0 65 .TP
Daniel@0 66 .BI \-g " [\fBf\fP]x,y"
Daniel@0 67 Generate an \fIx\fP by \fIy\fP grid.
Daniel@0 68 If \fBf\fP is given, the grid is folded, with an edge
Daniel@0 69 attaching each pair of opposing corner vertices.
Daniel@0 70 This will have \fIx*y\fP vertices and
Daniel@0 71 \fI2*x*y - y - x\fP edges if unfolded and
Daniel@0 72 \fI2*x*y - y - x + 2\fP edges if folded.
Daniel@0 73 .TP
Daniel@0 74 .BI \-G " [\fBf\fP]x,y"
Daniel@0 75 Generate an \fIx\fP by \fIy\fP partial grid.
Daniel@0 76 If \fBf\fP is given, the grid is folded, with an edge
Daniel@0 77 attaching each pair of opposing corner vertices.
Daniel@0 78 This will have \fIx*y\fP vertices.
Daniel@0 79 .TP
Daniel@0 80 .BI \-h " n"
Daniel@0 81 Generate a hypercube of degree \fIn\fP.
Daniel@0 82 This will have \fI2^n\fP vertices and \fIn*2^(n-1)\fP edges.
Daniel@0 83 .TP
Daniel@0 84 .BI \-k " n"
Daniel@0 85 Generate a complete graph on \fIn\fP vertices with
Daniel@0 86 \fIn*(n-1)/2\fP edges.
Daniel@0 87 .TP
Daniel@0 88 .BI \-b " x,y"
Daniel@0 89 Generate a complete \fIx\fP by \fIy\fP bipartite graph.
Daniel@0 90 This will have \fIx+y\fP vertices and
Daniel@0 91 \fIx*y\fP edges.
Daniel@0 92 .TP
Daniel@0 93 .BI \-p " n"
Daniel@0 94 Generate a path on \fIn\fP vertices.
Daniel@0 95 This will have \fIn-1\fP edges.
Daniel@0 96 .TP
Daniel@0 97 .BI \-s " n"
Daniel@0 98 Generate a star on \fIn\fP vertices.
Daniel@0 99 This will have \fIn-1\fP edges.
Daniel@0 100 .TP
Daniel@0 101 .BI \-S " n"
Daniel@0 102 Generate a Sierpinski graph of order \fIn\fP.
Daniel@0 103 This will have \fI3*(3^(n-1) - 1)/2\fP vertices and
Daniel@0 104 \fI3^n\fP edges.
Daniel@0 105 .TP
Daniel@0 106 .BI \-t " n"
Daniel@0 107 Generate a binary tree of height \fIn\fP.
Daniel@0 108 This will have \fI2^n-1\fP vertices and
Daniel@0 109 \fI2^n-2\fP edges.
Daniel@0 110 .TP
Daniel@0 111 .BI \-T " x,y"
Daniel@0 112 Generate an \fIx\fP by \fIy\fP torus.
Daniel@0 113 This will have \fIx*y\fP vertices and
Daniel@0 114 \fI2*x*y\fP edges.
Daniel@0 115 .TP
Daniel@0 116 .BI \-w " n"
Daniel@0 117 Generate a path on \fIn\fP vertices.
Daniel@0 118 This will have \fIn-1\fP edges.
Daniel@0 119 .TP
Daniel@0 120 .BI \-o " outfile"
Daniel@0 121 If specified, the generated graph is written into the file
Daniel@0 122 .I outfile.
Daniel@0 123 Otherwise, the graph is written to standard out.
Daniel@0 124 .TP
Daniel@0 125 .B \-d
Daniel@0 126 Make the generated graph directed.
Daniel@0 127 .TP
Daniel@0 128 .B \-?
Daniel@0 129 Print usage information.
Daniel@0 130 .SH "EXIT STATUS"
Daniel@0 131 .B gvgen
Daniel@0 132 exits with 0 on successful completion,
Daniel@0 133 and exits with 1 if given an ill-formed or incorrect flag,
Daniel@0 134 or if the specified output file could not be opened.
Daniel@0 135 .SH AUTHOR
Daniel@0 136 Emden R. Gansner <erg@research.att.com>
Daniel@0 137 .SH "SEE ALSO"
Daniel@0 138 gc(1), acyclic(1), gvpr(1), gvcolor(1), ccomps(1), sccmap(1), tred(1), libgraph(3)